From d846c3070babb54d3b35943537c3acbd3c923701 Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Tue, 28 Apr 2009 17:17:57 +0000 Subject: [PATCH] And a convenience function for the client, too. git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@820 c613c5cb-e716-0410-b11b-feb51c14d237 --- .../com/threerings/parlor/game/client/GameController.as | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/as/com/threerings/parlor/game/client/GameController.as b/src/as/com/threerings/parlor/game/client/GameController.as index 1f78f04b..3283d96e 100644 --- a/src/as/com/threerings/parlor/game/client/GameController.as +++ b/src/as/com/threerings/parlor/game/client/GameController.as @@ -177,6 +177,14 @@ public /*abstract*/ class GameController extends PlaceController return (_userIder == null) ? 0 : _userIder.getUserId(name); } + /** + * Returns the persistent user id for the supplied occupant info. + */ + public function getPlayerPersistentId (occInfo :OccupantInfo) :int + { + return getPlayerPersistentId(occInfo.username); + } + /** * Returns the unique identifier for the current gameplay session. */