Finished player choosing entry implementation; TODO: Award in non Buzzer Interaction
This commit is contained in:
1 parent
a798ec1558
commit
5ef8ea86bb
12 files changed
+200
-74
No files matched your search
@@ -32,6 +32,10 @@ onMounted( () => {
|
||||
if( !gameStore.isHost ){
|
||||
gameStore.isPlayerChoosing = data.payload.choosingPlayer === gameStore.playerId;
|
||||
}
|
||||
let choosingPlayerIndex = gameStore.players.findIndex( playerEntry => playerEntry._id === data.payload.choosingPlayer );
|
||||
if( choosingPlayerIndex !== -1 ){
|
||||
gameStore.players[choosingPlayerIndex].isChoosing = true;
|
||||
}
|
||||
router.push( { name: "gameWithGameId", params: { gameId: route.params.gameId } } );
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user