diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-08-05 03:07:30 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-08-05 03:07:30 +0900 |
| commit | 9ff9c151e5defd9eed5cba3c88bc341b4360d09c (patch) | |
| tree | bf5b9e721274ffa58df66823d39f9ceadebc9f98 /backend/game/models.go | |
| parent | ff959dadb1f990173b9df3105ccfc96b1c6c092e (diff) | |
| parent | 498ad23eaaae1e856c71f44ad0bf3912a6d7e5b7 (diff) | |
| download | iosdc-japan-2024-albatross-9ff9c151e5defd9eed5cba3c88bc341b4360d09c.tar.gz iosdc-japan-2024-albatross-9ff9c151e5defd9eed5cba3c88bc341b4360d09c.tar.zst iosdc-japan-2024-albatross-9ff9c151e5defd9eed5cba3c88bc341b4360d09c.zip | |
Merge branch 'feat/multiplayer-mode'
Diffstat (limited to 'backend/game/models.go')
| -rw-r--r-- | backend/game/models.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/backend/game/models.go b/backend/game/models.go index 6c299d6..4080482 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,11 +24,13 @@ const ( type game struct { gameID int + gameType gameType state gameState displayName string durationSeconds int startedAt *time.Time problem *problem + playerCount int } type problem struct { |
