15 lines
202 B
Go
15 lines
202 B
Go
|
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"`
|
||
|
}
|