Beginnings of Whirled service which is a system for building worlds made

of interconnected scenes on top of the Cocktail services.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@228 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2001-08-11 04:09:51 +00:00
parent 5daf0d734f
commit 5a2196bd0c
12 changed files with 628 additions and 0 deletions
@@ -0,0 +1,39 @@
//
// $Id: SceneManager.java,v 1.1 2001/08/11 04:09:50 mdb Exp $
package com.threerings.whirled.server;
import com.threerings.cocktail.party.server.PlaceManager;
import com.threerings.whirled.data.Scene;
public class SceneManager extends PlaceManager
{
public Scene getScene ()
{
return _scene;
}
/**
* Called by the scene registry once the scene manager has been
* created (and initialized), but before it is started up.
*/
protected void postInit (Scene scene, SceneRegistry screg)
{
_scene = scene;
_screg = screg;
}
/**
* We're fully ready to go, so now we register ourselves with the
* scene registry which will make us available to the clients and
* system at large.
*/
protected void didStartup ()
{
super.didStartup();
_screg.sceneManagerDidInit(this);
}
protected Scene _scene;
protected SceneRegistry _screg;
}