Added getSceneManager() for looking up scene managers by scene id.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@613 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -3,5 +3,8 @@ Narya Notes -*- mode: outline -*-
|
||||
* Media framework
|
||||
Make sure the animation and sprite stuff is general purpose.
|
||||
|
||||
Fix all the code that presently loads up tiles from tilesets by id which
|
||||
should really be loading the tilesets by path.
|
||||
|
||||
* General
|
||||
Remove dependencies of nodemap on miso.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: SceneRegistry.java,v 1.8 2001/10/24 00:58:12 mdb Exp $
|
||||
// $Id: SceneRegistry.java,v 1.9 2001/11/09 21:47:09 mdb Exp $
|
||||
|
||||
package com.threerings.whirled.server;
|
||||
|
||||
@@ -48,6 +48,17 @@ public class SceneRegistry
|
||||
_invoker.start();
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetches the scene manager assosciated with the specified scene.
|
||||
*
|
||||
* @return the scene manager for the specified scene or null if no
|
||||
* scene manager is loaded for that scene.
|
||||
*/
|
||||
public SceneManager getSceneManager (int sceneId)
|
||||
{
|
||||
return (SceneManager)_scenemgrs.get(sceneId);
|
||||
}
|
||||
|
||||
/**
|
||||
* Because scenes must be loaded from the scene repository and this
|
||||
* must not be done on the dobjmgr thread, the interface for resolving
|
||||
|
||||
Reference in New Issue
Block a user