Large refactor, move object and tile types out into the proto

This commit is contained in:
Marc Di Luzio 2020-07-19 12:26:57 +01:00
parent 24d4fe9273
commit 305f64ec38
9 changed files with 338 additions and 210 deletions

View file

@ -287,10 +287,10 @@ func InnerMain(command string, args ...string) error {
for i := 0; i < num; i++ {
t := response.Tiles[i+num*j]
o := response.Objects[i+num*j]
if o != byte(atlas.ObjectNone) {
fmt.Printf("%c", o)
} else if t != byte(atlas.TileNone) {
fmt.Printf("%c", t)
if o != roveapi.Object_ObjectNone {
fmt.Printf("%c", atlas.ObjectGlyph(o))
} else if t != roveapi.Tile_TileNone {
fmt.Printf("%c", atlas.TileGlyph(t))
} else {
fmt.Printf(" ")
}