Move glyph definitions into a central type

This commit is contained in:
Marc Di Luzio 2020-07-19 11:46:37 +01:00
parent 0e731df1a3
commit a0b811a659
3 changed files with 34 additions and 7 deletions
pkg/atlas

View file

@ -6,13 +6,13 @@ type Type byte
// Types of objects
const (
// ObjectNone represents no object at all
ObjectNone = Type(0)
ObjectNone = Type(GlyphNone)
// ObjectRover represents a live rover
ObjectRover = Type('R')
ObjectRover = Type(GlyphRover)
// ObjectSmallRock is a small stashable rock
ObjectSmallRock = Type('o')
ObjectSmallRock = Type(GlyphSmallRock)
// ObjectLargeRock is a large blocking rock
ObjectLargeRock = Type('O')