feat: gamemaster

This commit is contained in:
Ilia Denisov
2026-05-03 07:59:03 +02:00
committed by GitHub
parent a7cee15115
commit 3e2622757e
229 changed files with 41521 additions and 1098 deletions
+7
View File
@@ -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"`
}
+4
View File
@@ -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 {