Created
June 7, 2011 03:25
-
-
Save nanodeath/1011627 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Tileset | |
{ | |
private Dictionary<String, Texture2D> tiles; | |
public Texture2D this[string key] | |
{ | |
get | |
{ | |
return tiles[key]; | |
} | |
} | |
// close enough... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Tileset { | |
private Map<String, Image> _tiles = new HashMap<String, Image>(); | |
public Map<String, Image> tiles = Collections.unmodifiableMap(_tiles); | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment