import { createReducer } from 'redux-create-reducer' import { increment } from '..' import { gameTickAction, gameAddComponentAction, gameAddObjectAction, } from './actions' import { state } from './state' import { GameState } from '.' export const reducer: any = createReducer(state, { [gameTickAction.type]: increment('tick'), [gameAddObjectAction.type]: increment('gameID'), [gameAddComponentAction.type]: increment('componentID'), })