8 lines
208 B
JavaScript
8 lines
208 B
JavaScript
export default function(data) {
|
|
const { store } = this.context
|
|
|
|
store.commit('engine/setJson', data)
|
|
store.commit('game/setStateAndPhase', data.game)
|
|
store.commit('round/setRound', data.game.round)
|
|
}
|