mirror of
https://github.com/AlecM33/Werewolf.git
synced 2025-12-27 08:17:50 +01:00
11 lines
457 B
JavaScript
11 lines
457 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.
|
|
Now several components can read a shared game state.
|
|
*/
|
|
export const stateBucket = {
|
|
joinRequestInFlight: true,
|
|
accessCode: null,
|
|
currentGameState: null,
|
|
environment: null
|
|
};
|