Mercurial > projects > myrrdin
view src/tileset.d @ 2:fc2f936a961c
basic loading, to be fixed
author | fred@reichbier.de |
---|---|
date | Thu, 17 Jul 2008 21:06:43 +0200 |
parents | a2d653eb9e99 |
children |
line wrap: on
line source
module tileset; import dsfml.window.all; import dsfml.system.all; import dsfml.graphics.all; import imagecache; alias Image[int] TileList; class Tileset { private Cache cache; public TileList tiles; this(Cache cache) { this.cache = cache; } void add_tile(int id, char[] filename) { this.tiles[id] = this.cache.get_image(filename); } }