knowyt/client/src/plugins/engine/parseSyncData.js
2021-08-15 18:52:15 +02:00

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)
}