attach overrides helper to gameManager

This commit is contained in:
Felix Staud 2024-07-25 14:20:53 -07:00
parent 6fb50593dc
commit c514aff854
1 changed files with 3 additions and 0 deletions

View File

@ -34,6 +34,7 @@ import { Species } from "#enums/species";
import { Button } from "#enums/buttons";
import { BattlerIndex } from "#app/battle.js";
import TargetSelectUiHandler from "#app/ui/target-select-ui-handler.js";
import { OverridesHelper } from "./overridesHelper";
/**
* Class to manage the game state and transitions between phases.
@ -44,6 +45,7 @@ export default class GameManager {
public phaseInterceptor: PhaseInterceptor;
public textInterceptor: TextInterceptor;
public inputsHandler: InputsHandler;
public readonly override: OverridesHelper;
/**
* Creates an instance of GameManager.
@ -59,6 +61,7 @@ export default class GameManager {
this.phaseInterceptor = new PhaseInterceptor(this.scene);
this.textInterceptor = new TextInterceptor(this.scene);
this.gameWrapper.setScene(this.scene);
this.override = new OverridesHelper(this);
}
/**