bgammon/command.go

18 lines
255 B
Go
Raw Normal View History

2023-07-31 23:46:28 +00:00
package bgammon
// commands are always sent TO the server
type Command struct {
Type int
}
type CommandChat struct {
Command
Message string
}
type CommandMove struct {
Event
Spaces []int // One or more sets of moves from A->B as A,B,A,B,A,B...
}