rove/pkg/game/command.go

18 lines
413 B
Go
Raw Normal View History

package game
import "github.com/mdiluz/rove/pkg/rove"
2020-06-06 12:45:45 +01:00
// Command represends a single command to execute
type Command struct {
Command rove.CommandType `json:"command"`
2020-06-06 12:45:45 +01:00
// Used in the move command
Bearing string `json:"bearing,omitempty"`
// Used in the broadcast command
Message []byte `json:"message,omitempty"`
}
// CommandStream is a list of commands to execute in order
type CommandStream []Command