Initial version.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@48 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -0,0 +1,27 @@
|
|||||||
|
//
|
||||||
|
// $Id: EditableTileSetManager.java,v 1.1 2001/07/14 00:02:47 shaper Exp $
|
||||||
|
|
||||||
|
package com.threerings.cocktail.miso.tile;
|
||||||
|
|
||||||
|
import com.samskivert.util.Config;
|
||||||
|
import com.samskivert.util.IntMap;
|
||||||
|
|
||||||
|
public class EditableTileSetManager implements TileSetManager
|
||||||
|
{
|
||||||
|
public EditableTileSetManager (Config config)
|
||||||
|
{
|
||||||
|
_config = config;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TileSet getTileSet (int tsid)
|
||||||
|
{
|
||||||
|
TileSet tset = (TileSet)_tilesets.get(tsid);
|
||||||
|
if (tset != null) return tset;
|
||||||
|
|
||||||
|
_tilesets.put(tsid, tset = new TileSet(_config, tsid));
|
||||||
|
return tset;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected Config _config;
|
||||||
|
protected IntMap _tilesets = new IntMap();
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user