Convert tiles and object types to typed consts

This commit is contained in:
Marc Di Luzio 2020-07-19 11:59:14 +01:00
parent 7e41ac0028
commit 24d4fe9273
2 changed files with 8 additions and 8 deletions

View file

@ -11,16 +11,16 @@ type Tile byte
const (
// TileNone is a keyword for nothing
TileNone = iota
TileNone = Tile(0)
// TileRock is solid rock ground
TileRock
TileRock = Tile(1)
// TileGravel is loose rocks
TileGravel
TileGravel = Tile(2)
// TileSand is sand
TileSand
TileSand = Tile(3)
)
// Glyph returns the glyph for this tile type