fix deprecation warnings from latest dmd
[SmugglerRL.git] / src / tile.d
blob82d99406a392e67929aaf5b2956106fdbcc788d9
1 import glyph;
2 import colour;
4 struct Tilebase {
5 Glyph glyph;
6 bool blocks_light, walkable;
7 RGBColour fgcolour;
8 private struct _attr {bool reverse, italic, bold, underline; }
9 _attr attrs;
12 struct Tile {
13 Tilebase base;
14 alias base this;
16 RGBColour bgcolour;
19 enum Tiles: Tilebase {
20 floor = Tilebase(Glyph.middot, false, true, RGBColour(0x4c4c4c)),
21 rock = Tilebase(Glyph.dark_square, true, false, RGBColour(0x663300)),