From 14cda8a50f8b7305508e7deb112dcb8f980969ff Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Sat, 2 Jan 2021 18:36:41 -0700 Subject: [PATCH] Add setObject state mutation. --- web/src/store/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/src/store/index.js b/web/src/store/index.js index 29598f7..a561802 100644 --- a/web/src/store/index.js +++ b/web/src/store/index.js @@ -104,6 +104,9 @@ export default new Vuex.Store({ newPlayer(state, player) { state.players.push(player); }, + setObject(state, chosenObject) { + state.chosen_object = chosenObject; + }, }, actions: { },