-
-
-
-
-
-
Play
+
+ waiting for gamemaster to start game ...
+
+
@@ -30,3 +28,15 @@ export default {
},
}
+
+
diff --git a/client/src/plugins/engine/parseSyncData.js b/client/src/plugins/engine/parseSyncData.js
index 4d46136..e0e4a97 100644
--- a/client/src/plugins/engine/parseSyncData.js
+++ b/client/src/plugins/engine/parseSyncData.js
@@ -3,4 +3,5 @@ export default function(data) {
store.commit('engine/setJson', data)
store.commit('game/setStateAndPhase', data.game)
+ store.commit('round/setRound', data.game.round)
}
diff --git a/client/src/store/game.js b/client/src/store/game.js
index 2d486ed..1929d86 100644
--- a/client/src/store/game.js
+++ b/client/src/store/game.js
@@ -1,6 +1,6 @@
export const state = () => ({
- state: "...",
- phase: "...",
+ state: "",
+ phase: "",
})
export const mutations = {
diff --git a/client/src/store/round.js b/client/src/store/round.js
new file mode 100644
index 0000000..530e372
--- /dev/null
+++ b/client/src/store/round.js
@@ -0,0 +1,11 @@
+export const state = () => ({
+ quote: "",
+ sources: [],
+})
+
+export const mutations = {
+ setRound(state, { quote, sources }) {
+ state.quote = quote
+ state.sources = sources
+ },
+}