Added a means by which the default base tileset can be set.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2465 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: MisoSceneModel.java,v 1.17 2003/04/21 17:08:57 mdb Exp $
|
||||
// $Id: MisoSceneModel.java,v 1.18 2003/04/25 22:26:25 mdb Exp $
|
||||
|
||||
package com.threerings.miso.data;
|
||||
|
||||
@@ -52,6 +52,14 @@ public abstract class MisoSceneModel extends SimpleStreamableObject
|
||||
*/
|
||||
public abstract boolean setBaseTile (int fqTileId, int x, int y);
|
||||
|
||||
/**
|
||||
* Updates the default base tileset id for this scene.
|
||||
*/
|
||||
public void setDefaultBaseTileSet (int tileSetId)
|
||||
{
|
||||
// nothing doing
|
||||
}
|
||||
|
||||
/**
|
||||
* Scene models can return a default tileset to be used when no base
|
||||
* tile data exists for a particular tile.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: SparseMisoSceneModel.java,v 1.5 2003/04/24 21:11:23 mdb Exp $
|
||||
// $Id: SparseMisoSceneModel.java,v 1.6 2003/04/25 22:26:25 mdb Exp $
|
||||
|
||||
package com.threerings.miso.data;
|
||||
|
||||
@@ -266,6 +266,12 @@ public class SparseMisoSceneModel extends MisoSceneModel
|
||||
return true;
|
||||
}
|
||||
|
||||
// documentation inherited
|
||||
public void setDefaultBaseTileSet (int tileSetId)
|
||||
{
|
||||
defTileSet = tileSetId;
|
||||
}
|
||||
|
||||
// documentation inherited
|
||||
public int getDefaultBaseTileSet ()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user