Add rover inventory capacity and test
This commit is contained in:
parent
e6ff453ff1
commit
2eaed1447d
7 changed files with 104 additions and 47 deletions
|
@ -19,6 +19,9 @@ type Rover struct {
|
|||
// Inventory represents any items the rover is carrying
|
||||
Inventory []objects.Object `json:"inventory"`
|
||||
|
||||
// Capacity is the maximum number of inventory items
|
||||
Capacity int `json:"capacity"`
|
||||
|
||||
// Integrity represents current rover health
|
||||
Integrity int `json:"integrity"`
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue