Add Charge and Max Charge attributes to the rover

This commit is contained in:
Marc Di Luzio 2020-07-04 12:25:15 +01:00
parent b066277ddf
commit 143fba505e
5 changed files with 85 additions and 39 deletions

View file

@ -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"`
}