diff --git a/src/statemanager.ts b/src/statemanager.ts index a30cdb3..50489ec 100644 --- a/src/statemanager.ts +++ b/src/statemanager.ts @@ -15,15 +15,22 @@ const N_TURNS: number = 9; export class StateManager { #turn: number; + #revision: number; constructor() { this.#turn = 1; + this.#revision = 1; } getTurn(): number { return this.#turn; } + nextRevision(): number { + this.#revision++; + return this.#revision; + } + startFirstGame() { getVNModal().play([ ...openingScene,