diff options
Diffstat (limited to 'frontend/src/models/games.js')
-rw-r--r-- | frontend/src/models/games.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/frontend/src/models/games.js b/frontend/src/models/games.js index 6420e06d..dfa0591d 100644 --- a/frontend/src/models/games.js +++ b/frontend/src/models/games.js @@ -34,12 +34,13 @@ const SettingsRecord: SettingsType = Record({ }); export class Settings extends SettingsRecord {} +export type GameState = 'LOBBY' | 'PLAYING'; export type GameShape = { id: number, name: string | void, players: List<string>, settings: SettingsType, - state: "LOBBY" | "TODO" + state: GameState, }; export type GameType = Record<GameShape>; export type GameMapType = Map<string, GameShape>; |