Add rover parts to the cmdline pretty printer
This commit is contained in:
parent
636f0ed773
commit
6a44633d40
1 changed files with 5 additions and 0 deletions
|
@ -25,6 +25,9 @@ const (
|
|||
// GlyphRoverDormant represents a dormant rover
|
||||
GlyphRoverDormant = Glyph('r')
|
||||
|
||||
// GlyphRoverParts represents spare rover parts
|
||||
GlyphRoverParts = Glyph('*')
|
||||
|
||||
// GlyphRockSmall is a small stashable rock
|
||||
GlyphRockSmall = Glyph('o')
|
||||
|
||||
|
@ -58,6 +61,8 @@ func ObjectGlyph(o roveapi.Object) Glyph {
|
|||
return GlyphRoverDormant
|
||||
case roveapi.Object_RockLarge:
|
||||
return GlyphRockLarge
|
||||
case roveapi.Object_RoverParts:
|
||||
return GlyphRoverParts
|
||||
}
|
||||
|
||||
log.Fatalf("Unknown object type: %c", o)
|
||||
|
|
Loading…
Add table
Reference in a new issue