ae1052a371
things compile and most things run so this is a good time to checkpoint. Let me recall: - Refactored the whole scene deal. - Revamped the XML parser stuff (now uses Digester). - Rethought the tile management. - Started tile bundle stuff. - Wrote some tests. - Did a bit of Mike-ification. Onward and moreward. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@621 542714f4-19e9-0310-aa3c-eee0fc999fb1
35 lines
1014 B
Java
35 lines
1014 B
Java
//
|
|
// $Id: DummyClientSceneRepository.java,v 1.5 2001/11/18 04:09:21 mdb Exp $
|
|
|
|
package com.threerings.whirled;
|
|
|
|
import java.io.IOException;
|
|
|
|
import com.threerings.whirled.Log;
|
|
import com.threerings.whirled.client.persist.SceneRepository;
|
|
import com.threerings.whirled.data.SceneModel;
|
|
import com.threerings.whirled.util.NoSuchSceneException;
|
|
|
|
/**
|
|
* The dummy scene repository just pretends to load and store scenes, but
|
|
* in fact it just creates new blank scenes when requested to load a scene
|
|
* and does nothing when requested to save one.
|
|
*/
|
|
public class DummyClientSceneRepository implements SceneRepository
|
|
{
|
|
// documentation inherited
|
|
public SceneModel loadSceneModel (int sceneId)
|
|
throws IOException, NoSuchSceneException
|
|
{
|
|
Log.info("Creating dummy scene model [id=" + sceneId + "].");
|
|
return new SceneModel();
|
|
}
|
|
|
|
// documentation inherited
|
|
public void updateSceneModel (SceneModel scene)
|
|
throws IOException
|
|
{
|
|
// nothing doing
|
|
}
|
|
}
|