Added back a form of getPlayerPersistentId() that takes a BodyObject, for convenience.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@819 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
@@ -337,6 +337,14 @@ public class GameManager extends PlaceManager
|
||||
return _userIder.getUserId(name);
|
||||
}
|
||||
|
||||
/**
|
||||
* Convenience for getting the persistent id from a body.
|
||||
*/
|
||||
public int getPlayerPersistentId (BodyObject body)
|
||||
{
|
||||
return getPlayerPersistentId(body.getVisibleName());
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the number of players in the game.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user