feat: gamemaster
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
package rest
|
||||
|
||||
// BanishRequest is the request body of POST /api/v1/admin/race/banish.
|
||||
// RaceName must identify an existing race in the engine roster.
|
||||
type BanishRequest struct {
|
||||
RaceName string `json:"race_name" binding:"required,notblank"`
|
||||
}
|
||||
@@ -11,6 +11,10 @@ type StateResponse struct {
|
||||
Stage uint `json:"stage"`
|
||||
// List of Game's players
|
||||
Players []PlayerState `json:"player"`
|
||||
// Finished is true on the turn-generation response that ends the
|
||||
// game; otherwise false. Game Master uses this as the sole signal to
|
||||
// run the platform finish flow.
|
||||
Finished bool `json:"finished"`
|
||||
}
|
||||
|
||||
type PlayerState struct {
|
||||
|
||||
Reference in New Issue
Block a user