From f85af6ffab326b5ec979aa97cb9f28c8b59e9d8b Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Tue, 5 Jun 2007 03:44:47 +0000 Subject: [PATCH] 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 --- src/as/com/threerings/ezgame/EZGameControl.as | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/as/com/threerings/ezgame/EZGameControl.as b/src/as/com/threerings/ezgame/EZGameControl.as index a3cc9ead..d1c44d89 100644 --- a/src/as/com/threerings/ezgame/EZGameControl.as +++ b/src/as/com/threerings/ezgame/EZGameControl.as @@ -265,6 +265,18 @@ public class EZGameControl extends BaseControl 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 * listeners it implements.