snengame/cmd.go

15 lines
202 B
Go
Raw Normal View History

package main
type CmdType string
const (
ActCmd = "a"
StateCmd = "s"
)
type Command struct {
PlayerID int `json:"player_id"`
Type CmdType `json:"type"`
Cmd string `json:"cmd"`
}