diff options
Diffstat (limited to 'backend/game/models.go')
| -rw-r--r-- | backend/game/models.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/backend/game/models.go b/backend/game/models.go index d3d0980..e96184a 100644 --- a/backend/game/models.go +++ b/backend/game/models.go @@ -6,9 +6,13 @@ import ( "github.com/nsfisis/iosdc-japan-2024-albatross/backend/api" ) +type gameType = api.GameGameType type gameState = api.GameState const ( + gameType1v1 = api.N1V1 + gameTypeMultiplayer = api.Multiplayer + gameStateClosed gameState = api.Closed gameStateWaitingEntries gameState = api.WaitingEntries gameStateWaitingStart gameState = api.WaitingStart @@ -20,7 +24,7 @@ const ( type game struct { gameID int - gameType string + gameType gameType state gameState displayName string durationSeconds int |
