Add Charge and Max Charge attributes to the rover
This commit is contained in:
parent
b066277ddf
commit
143fba505e
5 changed files with 85 additions and 39 deletions
|
@ -27,4 +27,10 @@ type Rover struct {
|
|||
|
||||
// MaximumIntegrity is the full integrity of the rover
|
||||
MaximumIntegrity int `json:"maximum-integrity"`
|
||||
|
||||
// Charge is the amount of energy the rover has
|
||||
Charge int `json:"charge"`
|
||||
|
||||
// ChargeCharge is the maximum charge able to be stored
|
||||
MaximumCharge int `json:"maximum-Charge"`
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue