Files
Werewolf/client/modules/StateBucket.js
2021-12-20 21:54:52 -05:00

8 lines
346 B
JavaScript

/* It started getting confusing where I am reading/writing to the game state, and thus the state started to get inconsistent.
Creating a bucket to hold it so I can overwrite the gameState object whilst still preserving a reference to the containing bucket.
*/
export const stateBucket = {
currentGameState: null,
timerWorker: null
}