Added ability to set scene id and version to EditableScene.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@356 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: DisplayMisoSceneImpl.java,v 1.36 2001/09/28 01:31:32 mdb Exp $
|
// $Id: DisplayMisoSceneImpl.java,v 1.37 2001/09/28 01:46:10 mdb Exp $
|
||||||
|
|
||||||
package com.threerings.miso.scene;
|
package com.threerings.miso.scene;
|
||||||
|
|
||||||
@@ -100,8 +100,7 @@ public class MisoSceneImpl implements EditableMisoScene
|
|||||||
// documentation inherited
|
// documentation inherited
|
||||||
public int getVersion ()
|
public int getVersion ()
|
||||||
{
|
{
|
||||||
// fake it for now
|
return _version;
|
||||||
return 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// documentation inherited
|
// documentation inherited
|
||||||
@@ -146,6 +145,18 @@ public class MisoSceneImpl implements EditableMisoScene
|
|||||||
return _entrance;
|
return _entrance;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// documentation inherited
|
||||||
|
public void setId (int sceneId)
|
||||||
|
{
|
||||||
|
_sid = sceneId;
|
||||||
|
}
|
||||||
|
|
||||||
|
// documentation inherited
|
||||||
|
public void setVersion (int version)
|
||||||
|
{
|
||||||
|
_version = version;
|
||||||
|
}
|
||||||
|
|
||||||
// documentation inherited
|
// documentation inherited
|
||||||
public void setName (String name)
|
public void setName (String name)
|
||||||
{
|
{
|
||||||
@@ -246,6 +257,9 @@ public class MisoSceneImpl implements EditableMisoScene
|
|||||||
/** The unique scene id. */
|
/** The unique scene id. */
|
||||||
protected int _sid;
|
protected int _sid;
|
||||||
|
|
||||||
|
/** The scene version. */
|
||||||
|
protected int _version;
|
||||||
|
|
||||||
/** The tiles comprising the scene. */
|
/** The tiles comprising the scene. */
|
||||||
public Tile[][][] _tiles;
|
public Tile[][][] _tiles;
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: EditableScene.java,v 1.1 2001/09/21 02:30:35 mdb Exp $
|
// $Id: EditableScene.java,v 1.2 2001/09/28 01:46:10 mdb Exp $
|
||||||
|
|
||||||
package com.threerings.whirled.data;
|
package com.threerings.whirled.data;
|
||||||
|
|
||||||
@@ -10,6 +10,16 @@ package com.threerings.whirled.data;
|
|||||||
*/
|
*/
|
||||||
public interface EditableScene extends Scene
|
public interface EditableScene extends Scene
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* Updates the scene's unique identifier.
|
||||||
|
*/
|
||||||
|
public void setId (int sceneId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Updates the scene's version.
|
||||||
|
*/
|
||||||
|
public void setVersion (int version);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Updates the scene's name.
|
* Updates the scene's name.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user