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:
Michael Bayne
2001-09-28 01:46:10 +00:00
parent cdaea4bbab
commit e5849ab0b6
2 changed files with 28 additions and 4 deletions
@@ -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;
@@ -100,8 +100,7 @@ public class MisoSceneImpl implements EditableMisoScene
// documentation inherited
public int getVersion ()
{
// fake it for now
return 1;
return _version;
}
// documentation inherited
@@ -146,6 +145,18 @@ public class MisoSceneImpl implements EditableMisoScene
return _entrance;
}
// documentation inherited
public void setId (int sceneId)
{
_sid = sceneId;
}
// documentation inherited
public void setVersion (int version)
{
_version = version;
}
// documentation inherited
public void setName (String name)
{
@@ -246,6 +257,9 @@ public class MisoSceneImpl implements EditableMisoScene
/** The unique scene id. */
protected int _sid;
/** The scene version. */
protected int _version;
/** The tiles comprising the scene. */
public Tile[][][] _tiles;