refactor GameStateRenderer, split functionality by game state

This commit is contained in:
AlecM33
2022-12-13 14:12:15 -05:00
parent a37dd966f9
commit 25897f985f
9 changed files with 596 additions and 551 deletions

View File

@@ -99,7 +99,7 @@ export class GameTimerManager {
timer.innerText = returnHumanReadableTime(0, true);
}
attachTimerSocketListeners (socket, timerWorker, gameStateRenderer) {
attachTimerSocketListeners (socket, timerWorker) {
if (!socket.hasListeners(globals.COMMANDS.PAUSE_TIMER)) {
socket.on(globals.COMMANDS.PAUSE_TIMER, (timeRemaining) => {
this.pauseGameTimer(timerWorker, timeRemaining);