Because only the editor and viewer even care about the scene repository,
we're eliminating the concept entirely from the MISO runtime stuff and having the editor and viewer just talk directly to the XML file scene repository. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@247 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: ViewerApp.java,v 1.4 2001/08/15 00:00:51 mdb Exp $
|
||||
// $Id: ViewerApp.java,v 1.5 2001/08/15 00:10:58 mdb Exp $
|
||||
|
||||
package com.threerings.miso.viewer;
|
||||
|
||||
@@ -10,7 +10,7 @@ import com.samskivert.swing.util.SwingUtil;
|
||||
import com.samskivert.util.Config;
|
||||
|
||||
import com.threerings.miso.Log;
|
||||
import com.threerings.miso.scene.SceneRepository;
|
||||
import com.threerings.miso.scene.xml.XMLFileSceneRepository;
|
||||
import com.threerings.miso.tile.TileManager;
|
||||
import com.threerings.miso.util.MisoUtil;
|
||||
import com.threerings.miso.viewer.util.ViewerContext;
|
||||
@@ -79,7 +79,7 @@ public class ViewerApp
|
||||
return _tilemgr;
|
||||
}
|
||||
|
||||
public SceneRepository getSceneRepository ()
|
||||
public XMLFileSceneRepository getSceneRepository ()
|
||||
{
|
||||
return _screpo;
|
||||
}
|
||||
@@ -110,7 +110,7 @@ public class ViewerApp
|
||||
protected Config _config;
|
||||
|
||||
/** The scene repository. */
|
||||
protected SceneRepository _screpo;
|
||||
protected XMLFileSceneRepository _screpo;
|
||||
|
||||
/** The tile manager object. */
|
||||
protected TileManager _tilemgr;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: ViewerSceneViewPanel.java,v 1.8 2001/08/15 00:00:51 mdb Exp $
|
||||
// $Id: ViewerSceneViewPanel.java,v 1.9 2001/08/15 00:10:58 mdb Exp $
|
||||
|
||||
package com.threerings.miso.viewer;
|
||||
|
||||
@@ -13,7 +13,7 @@ import com.threerings.media.sprite.*;
|
||||
|
||||
import com.threerings.miso.Log;
|
||||
import com.threerings.miso.scene.*;
|
||||
import com.threerings.miso.scene.SceneRepository;
|
||||
import com.threerings.miso.scene.xml.XMLFileSceneRepository;
|
||||
import com.threerings.miso.util.*;
|
||||
import com.threerings.miso.viewer.util.ViewerContext;
|
||||
|
||||
@@ -49,7 +49,7 @@ public class ViewerSceneViewPanel extends SceneViewPanel
|
||||
*/
|
||||
protected void prepareStartingScene ()
|
||||
{
|
||||
SceneRepository screpo = _ctx.getSceneRepository();
|
||||
XMLFileSceneRepository screpo = _ctx.getSceneRepository();
|
||||
|
||||
// get the starting scene filename
|
||||
Config config = _ctx.getConfig();
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
//
|
||||
// $Id: ViewerContext.java,v 1.2 2001/08/15 00:00:52 mdb Exp $
|
||||
// $Id: ViewerContext.java,v 1.3 2001/08/15 00:10:59 mdb Exp $
|
||||
|
||||
package com.threerings.miso.viewer.util;
|
||||
|
||||
import com.samskivert.util.Context;
|
||||
|
||||
import com.threerings.miso.scene.SceneRepository;
|
||||
import com.threerings.miso.scene.xml.XMLFileSceneRepository;
|
||||
import com.threerings.miso.util.MisoContext;
|
||||
|
||||
/**
|
||||
@@ -17,5 +17,5 @@ public interface ViewerContext extends MisoContext, Context
|
||||
/**
|
||||
* Returns the scene repository that we can use to get scenes.
|
||||
*/
|
||||
public SceneRepository getSceneRepository ();
|
||||
public XMLFileSceneRepository getSceneRepository ();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user