mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-28 18:31:45 +00:00
# Add initial basic player AI framework.
Support direct access to serializer streams, so serializers can be nested. Make component script "this.template" read-only. Stop globally-subscribed component scripts receiving messages posted to local components, to reduce out-of-sync risks. Move pathfinder data out of entity template directory. Fix GuiInterface deserialization. This was SVN commit r8865.
This commit is contained in:
@@ -32,8 +32,16 @@ public:
|
||||
CScriptVal() : m_Val(JSVAL_VOID) { }
|
||||
CScriptVal(jsval val) : m_Val(val) { }
|
||||
|
||||
/**
|
||||
* Returns the current value.
|
||||
*/
|
||||
const jsval& get() const { return m_Val; }
|
||||
|
||||
/**
|
||||
* Returns whether the value is JSVAL_VOID.
|
||||
*/
|
||||
bool undefined() const { return JSVAL_IS_VOID(m_Val); }
|
||||
|
||||
private:
|
||||
jsval m_Val;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user