Add an inventory to the rover
This commit is contained in:
parent
15b8f0a427
commit
8019ea4e25
3 changed files with 24 additions and 3 deletions
14
pkg/game/items.go
Normal file
14
pkg/game/items.go
Normal file
|
@ -0,0 +1,14 @@
|
|||
package game
|
||||
|
||||
// Each item is a specific type
|
||||
const (
|
||||
ItemNone = byte(0)
|
||||
|
||||
// Describes a single rock
|
||||
ItemRock = byte(1)
|
||||
)
|
||||
|
||||
// Item describes an item that can be held
|
||||
type Item struct {
|
||||
Type byte `json:"type"`
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue