feat: finish game; store reports
This commit is contained in:
@@ -47,6 +47,11 @@ type Game struct {
|
||||
Votes float64 `json:"votes"`
|
||||
ShipGroups []ShipGroup `json:"shipGroup,omitempty"`
|
||||
Fleets []Fleet `json:"fleet,omitempty"`
|
||||
Winner []uuid.UUID `json:"winner,omitempty"`
|
||||
}
|
||||
|
||||
func (g Game) Finished() bool {
|
||||
return len(g.Winner) > 0
|
||||
}
|
||||
|
||||
type GameMeta struct {
|
||||
|
||||
Reference in New Issue
Block a user