Initial work on reading and writing scenes to XML files.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@113 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Walter Korman
2001-07-23 22:31:48 +00:00
parent bc3d2a4e18
commit f02475b4c2
12 changed files with 285 additions and 116 deletions
@@ -1,5 +1,5 @@
//
// $Id: MisoUtil.java,v 1.2 2001/07/23 18:52:51 shaper Exp $
// $Id: MisoUtil.java,v 1.3 2001/07/23 22:31:48 shaper Exp $
package com.threerings.miso.util;
@@ -39,12 +39,15 @@ public class MisoUtil
*
* @return the new SceneManager object or null if an error occurred.
*/
public static SceneManager createSceneManager (Config config)
public static SceneManager
createSceneManager (Config config, TileManager tilemgr)
{
try {
return (SceneManager)
SceneManagerImpl scenemgr = (SceneManagerImpl)
config.instantiateValue("miso.scenemgr", DEF_SCENEMGR);
scenemgr.init(tilemgr);
return scenemgr;
} catch (Exception e) {
Log.warning("Failed to instantiate scene manager [e=" + e + "].");
return null;