Added getPropertyNames(), which used to be unnecessary because you could get
the data Object (actually a proxy to it) and do a for or for-each on that, but we removed that when we made 3 different kinds of sets. git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@307 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
@@ -265,6 +265,18 @@ public class EZGameControl extends BaseControl
|
|||||||
callEZCode("testAndSetProperty_v1", propName, newValue, testValue, index);
|
callEZCode("testAndSetProperty_v1", propName, newValue, testValue, index);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the names of all currently-set properties.
|
||||||
|
*/
|
||||||
|
public function getProperyNames () :Array
|
||||||
|
{
|
||||||
|
var props :Array = [];
|
||||||
|
for (var s :String in _gameData) {
|
||||||
|
props.push(s);
|
||||||
|
}
|
||||||
|
return props;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Register an object to receive whatever events it should receive, based on which event
|
* Register an object to receive whatever events it should receive, based on which event
|
||||||
* listeners it implements.
|
* listeners it implements.
|
||||||
|
|||||||
Reference in New Issue
Block a user