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:
Ray Greenwell
2007-06-05 03:44:47 +00:00
parent c491a2db1d
commit f85af6ffab
@@ -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.