2020-06-03 18:12:08 +01:00
|
|
|
package game
|
|
|
|
|
2020-06-06 12:45:45 +01:00
|
|
|
const (
|
|
|
|
CommandMove = "move"
|
|
|
|
)
|
2020-06-03 18:12:08 +01:00
|
|
|
|
2020-06-06 12:45:45 +01:00
|
|
|
// Command represends a single command to execute
|
|
|
|
type Command struct {
|
|
|
|
Command string `json:"command"`
|
2020-06-03 18:12:08 +01:00
|
|
|
|
2020-06-06 12:45:45 +01:00
|
|
|
// Used in the move command
|
|
|
|
Bearing string `json:"bearing,omitempty"`
|
|
|
|
Duration int `json:"duration,omitempty"`
|
2020-06-03 18:12:08 +01:00
|
|
|
}
|