mirror of
https://github.com/AlecM33/Werewolf.git
synced 2025-12-26 15:57:50 +01:00
built out rest of functionality; add placeholder when there are no custom roles
This commit is contained in:
@@ -221,7 +221,10 @@ function setClientSocketHandlers (stateBucket, socket) {
|
||||
|
||||
socket.on(EVENT_IDS.START_GAME, () => { fetchGameStateHandler(startGameStateAckFn); });
|
||||
|
||||
socket.on(EVENT_IDS.RESTART_GAME, () => { fetchGameStateHandler(restartGameStateAckFn); });
|
||||
socket.on(EVENT_IDS.RESTART_GAME, () => {
|
||||
document.querySelector('#game-control-prompt')?.remove();
|
||||
fetchGameStateHandler(restartGameStateAckFn);
|
||||
});
|
||||
|
||||
socket.on(EVENT_IDS.SYNC_GAME_STATE, () => {
|
||||
socket.emit(
|
||||
|
||||
Reference in New Issue
Block a user