Added where().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2872 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: SceneRegistry.java,v 1.20 2003/09/25 00:26:16 mdb Exp $
|
// $Id: SceneRegistry.java,v 1.21 2003/11/24 21:06:36 mdb Exp $
|
||||||
|
|
||||||
package com.threerings.whirled.server;
|
package com.threerings.whirled.server;
|
||||||
|
|
||||||
@@ -92,6 +92,17 @@ public class SceneRegistry
|
|||||||
return _screp;
|
return _screp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns {@link SceneManager#where} for the specified scene or
|
||||||
|
* <code>null:sceneId</code> if no scene manager exists for that
|
||||||
|
* scene.
|
||||||
|
*/
|
||||||
|
public String where (int sceneId)
|
||||||
|
{
|
||||||
|
SceneManager scmgr = getSceneManager(sceneId);
|
||||||
|
return (scmgr == null) ? ("null:" + sceneId) : scmgr.where();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Because scenes must be loaded from the scene repository and this
|
* Because scenes must be loaded from the scene repository and this
|
||||||
* must not be done on the dobjmgr thread, the interface for resolving
|
* must not be done on the dobjmgr thread, the interface for resolving
|
||||||
|
|||||||
Reference in New Issue
Block a user