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:
Michael Bayne
2001-08-15 00:10:59 +00:00
parent d26dc0372e
commit 8d017e268f
6 changed files with 29 additions and 74 deletions
@@ -1,21 +0,0 @@
//
// $Id: SceneRepository.java,v 1.2 2001/08/15 00:00:51 mdb Exp $
package com.threerings.miso.scene;
import java.io.IOException;
/**
* The SceneRepository interface manages persistent scene storage.
*/
public interface SceneRepository
{
/**
* Loads and returns the scene object with the specified id.
*
* @param fname the full pathname to the file.
*
* @return the scene object.
*/
public Scene loadScene (String fname) throws IOException;
}
@@ -1,31 +0,0 @@
//
// $Id: SceneRepositoryImpl.java,v 1.2 2001/08/09 00:01:58 shaper Exp $
package com.threerings.miso.scene;
import com.samskivert.util.Config;
import com.threerings.miso.tile.TileManager;
public abstract class SceneRepositoryImpl implements SceneRepository
{
/**
* Initialize the SceneRepository with the given config and tile
* manager objects. The root scene directory is read from the
* given config object, and the tile manager is used to obtain
* tiles when constructing scene objects from files.
*
* @param config the config object.
* @param tilemgr the tile manager object.
*/
public void init (Config config, TileManager tilemgr)
{
_config = config;
_tilemgr = tilemgr;
}
/** The config object. */
protected Config _config;
/** The tile manager from which the scenes obtain their tiles. */
protected TileManager _tilemgr;
}