rove/pkg/game/command.go
Marc Di Luzio 2f6465987d More de-scope - remove duration on move command
This isn't even needed, as commands can just be queued up
2020-06-26 22:26:27 +01:00

18 lines
341 B
Go

package game
const (
CommandMove = "move"
CommandStash = "stash"
)
// Command represends a single command to execute
type Command struct {
Command string `json:"command"`
// Used in the move command
Bearing string `json:"bearing,omitempty"`
}
// CommandStream is a list of commands to execute in order
type CommandStream []Command