From 543c6b2541fcd98051efe0b2825006934f784d45 Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Tue, 28 Apr 2009 17:42:14 +0000 Subject: [PATCH] Maybe something like this. Waffle. git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@823 c613c5cb-e716-0410-b11b-feb51c14d237 --- .../threerings/parlor/game/client/GameController.as | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/as/com/threerings/parlor/game/client/GameController.as b/src/as/com/threerings/parlor/game/client/GameController.as index 1cbdf81e..b51d07ec 100644 --- a/src/as/com/threerings/parlor/game/client/GameController.as +++ b/src/as/com/threerings/parlor/game/client/GameController.as @@ -171,14 +171,20 @@ public /*abstract*/ class GameController extends PlaceController /** * Returns the persistent user id for the supplied player name. - * - * @param spec a Name or OccupantInfo. */ - public function getPlayerPersistentId (name :Name) :int + public function nameToId (name :Name) :int { return (_userIder == null) ? 0 : _userIder.getUserId(name); } + /** + * Returns the persistent user id for the supplied occupant info. + */ + public function infoToId (occInfo :OccupantInfo) :int + { + return nameToId(occInfo.username); + } + /** * Returns the unique identifier for the current gameplay session. */