send moves
parent
950aeda87e
commit
07791b0752
@ -0,0 +1,17 @@
|
||||
package main
|
||||
|
||||
import "encoding/json"
|
||||
|
||||
type request struct {
|
||||
// client-side sequence number. Clients are expected to send requests with
|
||||
// a monotonically-incrementing sequence number.
|
||||
Seq int `json:"seq"`
|
||||
|
||||
// command represents the command to be executed on the server. Command
|
||||
// names are globally unique.
|
||||
Command string `json:"cmd"`
|
||||
|
||||
// args are the arguments passed to the command for parameterized commands
|
||||
// executed on the server.
|
||||
Args map[string]json.RawMessage `json:"args"`
|
||||
}
|
@ -0,0 +1,8 @@
|
||||
package main
|
||||
|
||||
// room represents a rectangular space in the world state
|
||||
type room struct {
|
||||
name string
|
||||
width int
|
||||
height int
|
||||
}
|
Loading…
Reference in New Issue