diff options
author | Joffrey Bion <joffrey.bion@booking.com> | 2020-04-06 18:55:25 +0200 |
---|---|---|
committer | Joffrey Bion <joffrey.bion@booking.com> | 2020-04-06 18:55:58 +0200 |
commit | d4d20533556928f63c8759437f67e76336bab55e (patch) | |
tree | 34e7bb151b5d21497665131b6ab8d875254e7666 /sw-ui/src/redux/actions/lobby.ts | |
parent | Refactoring in GameScene.kt (diff) | |
download | seven-wonders-d4d20533556928f63c8759437f67e76336bab55e.tar.gz seven-wonders-d4d20533556928f63c8759437f67e76336bab55e.tar.bz2 seven-wonders-d4d20533556928f63c8759437f67e76336bab55e.zip |
Delete old React/TypeScript UI
Diffstat (limited to 'sw-ui/src/redux/actions/lobby.ts')
-rw-r--r-- | sw-ui/src/redux/actions/lobby.ts | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/sw-ui/src/redux/actions/lobby.ts b/sw-ui/src/redux/actions/lobby.ts deleted file mode 100644 index c121b022..00000000 --- a/sw-ui/src/redux/actions/lobby.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { ApiLobby } from '../../api/model'; - -export const UPDATE_GAMES = 'GAMES/UPDATE_GAMES'; -export const REQUEST_CREATE_GAME = 'GAMES/REQUEST_CREATE_GAME'; -export const REQUEST_JOIN_GAME = 'GAMES/REQUEST_JOIN_GAME'; -export const REQUEST_START_GAME = 'GAMES/REQUEST_START_GAME'; -export const ENTER_LOBBY = 'GAMES/ENTER_LOBBY'; -export const ENTER_GAME = 'GAMES/ENTER_GAME'; - -export type UpdateGamesAction = { type: typeof UPDATE_GAMES, games: ApiLobby[]}; -export type RequestCreateGameAction = { type: typeof REQUEST_CREATE_GAME, gameName: string }; -export type RequestJoinGameAction = { type: typeof REQUEST_JOIN_GAME, gameId: number }; -export type RequestStartGameAction = { type: typeof REQUEST_START_GAME }; -export type EnterLobbyAction = { type: typeof ENTER_LOBBY, gameId: number }; -export type EnterGameAction = { type: typeof ENTER_GAME, gameId: number }; - -export type LobbyAction = - | UpdateGamesAction - | RequestCreateGameAction - | RequestJoinGameAction - | RequestStartGameAction - | EnterLobbyAction - | EnterGameAction; - -export const actions = { - updateGames: (games: ApiLobby[]): UpdateGamesAction => ({ type: UPDATE_GAMES, games }), - requestJoinGame: (gameId: number): RequestJoinGameAction => ({ type: REQUEST_JOIN_GAME, gameId }), - requestCreateGame: (gameName: string): RequestCreateGameAction => ({ type: REQUEST_CREATE_GAME, gameName }), - requestStartGame: (): RequestStartGameAction => ({ type: REQUEST_START_GAME }), - enterLobby: (gameId: number): EnterLobbyAction => ({ type: ENTER_LOBBY, gameId }), - enterGame: (gameId: number): EnterGameAction => ({ type: ENTER_GAME, gameId }), -}; |