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/game.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/game.ts')
-rw-r--r-- | sw-ui/src/redux/actions/game.ts | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/sw-ui/src/redux/actions/game.ts b/sw-ui/src/redux/actions/game.ts deleted file mode 100644 index b67ea1dc..00000000 --- a/sw-ui/src/redux/actions/game.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { ApiPlayerMove, ApiPlayerTurnInfo, ApiPreparedCard, ApiTable } from '../../api/model'; - -export const REQUEST_SAY_READY = 'GAME/REQUEST_SAY_READY'; -export const REQUEST_PREPARE_MOVE = 'GAME/REQUEST_PREPARE_MOVE'; -export const PLAYER_READY_RECEIVED = 'GAME/PLAYER_READY_RECEIVED'; -export const TABLE_UPDATE_RECEIVED = 'GAME/TABLE_UPDATE_RECEIVED'; -export const PREPARED_CARD_RECEIVED = 'GAME/PREPARED_CARD_RECEIVED'; -export const TURN_INFO_RECEIVED = 'GAME/TURN_INFO_RECEIVED'; - -export type SayReadyAction = { type: typeof REQUEST_SAY_READY }; -export type PrepareMoveAction = { type: typeof REQUEST_PREPARE_MOVE, move: ApiPlayerMove }; -export type PlayerReadyEvent = { type: typeof PLAYER_READY_RECEIVED, username: string }; -export type TableUpdateEvent = { type: typeof TABLE_UPDATE_RECEIVED, table: ApiTable }; -export type PreparedCardEvent = { type: typeof PREPARED_CARD_RECEIVED, card: ApiPreparedCard }; -export type TurnInfoEvent = { type: typeof TURN_INFO_RECEIVED, turnInfo: ApiPlayerTurnInfo }; - -export type GameAction = - SayReadyAction - | PrepareMoveAction - | PlayerReadyEvent - | TableUpdateEvent - | PreparedCardEvent - | TurnInfoEvent; - -export const actions = { - sayReady: () => ({ type: REQUEST_SAY_READY }), - prepareMove: (move: ApiPlayerMove) => ({ type: REQUEST_PREPARE_MOVE, move }), - receivePlayerReady: (username: string) => ({ type: PLAYER_READY_RECEIVED, username }), - receiveTableUpdate: (table: ApiTable) => ({ type: TABLE_UPDATE_RECEIVED, table }), - receivePreparedCard: (card: ApiPreparedCard) => ({ type: PREPARED_CARD_RECEIVED, card }), - receiveTurnInfo: (turnInfo: ApiPlayerTurnInfo) => ({ type: TURN_INFO_RECEIVED, turnInfo }), -}; |