import { AnyAction , Reducer , ReducersMapObject } from "redux" ; import { BoardState } from "@shoki/board" ; import { PieceModel , RoundInfoState } from "@creature-chess/models" ; import { playerInfoReducer , PlayerInfoState } from "./playerInfo" ; import { cardShopReducer , CardShopState } from "./cardShop" ; import { spectatingReducer , SpectatingState } from "./spectating" ; export * as PlayerCommands from "./commands" ; export interface PlayerState { board : BoardState < PieceModel > ; bench : BoardState < PieceModel > ; cardShop : CardShopState ; playerInfo : PlayerInfoState ; roundInfo : RoundInfoState ; spectating : SpectatingState ; } export const playerReducers = { spectating : spectatingReducer , cardShop : cardShopReducer , playerInfo : playerInfoReducer as Reducer < PlayerInfoState , AnyAction > } ;