diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-03-08 10:13:05 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-03-08 10:13:05 +0900 |
| commit | 8dbdf96e674c1e26d7c98af8d0608f30bc1bf166 (patch) | |
| tree | 7c82476f6bbbc71d72ab7e71e39559eca197fd95 /backend/game/models.go | |
| parent | 54316868c3bec1ff9b04643dfe6c13cf56bf3246 (diff) | |
| parent | 1e6df136d8202c8adf65948527f4c3e7583b338c (diff) | |
| download | phperkaigi-2025-albatross-8dbdf96e674c1e26d7c98af8d0608f30bc1bf166.tar.gz phperkaigi-2025-albatross-8dbdf96e674c1e26d7c98af8d0608f30bc1bf166.tar.zst phperkaigi-2025-albatross-8dbdf96e674c1e26d7c98af8d0608f30bc1bf166.zip | |
Merge branch 'phperkaigi-2025-ws-to-polling' into phperkaigi-2025
Diffstat (limited to 'backend/game/models.go')
| -rw-r--r-- | backend/game/models.go | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/backend/game/models.go b/backend/game/models.go deleted file mode 100644 index 23bed12..0000000 --- a/backend/game/models.go +++ /dev/null @@ -1,38 +0,0 @@ -package game - -import ( - "time" - - "github.com/nsfisis/phperkaigi-2025-albatross/backend/api" -) - -type gameType = api.GameGameType -type gameState = api.GameState - -const ( - gameType1v1 = api.N1V1 - gameTypeMultiplayer = api.Multiplayer - - gameStateClosed gameState = api.Closed - gameStateWaiting gameState = api.Waiting - gameStateStarting gameState = api.Starting - gameStateGaming gameState = api.Gaming - gameStateFinished gameState = api.Finished -) - -type game struct { - gameID int - gameType gameType - state gameState - displayName string - durationSeconds int - startedAt *time.Time - problem *problem - playerCount int -} - -type problem struct { - problemID int - title string - description string -} |
