mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-12-16 23:05:23 +01:00
https://github.com/pagefaultgames/pokerogue/pull/5955 * Add newPhase method to phase-manager * Update calls to append/prepend phase to use string phase * Replace instantiations of new phase with phase manager
14 lines
391 B
TypeScript
14 lines
391 B
TypeScript
import { globalScene } from "#app/global-scene";
|
|
import { Phase } from "#app/phase";
|
|
import { UiMode } from "#enums/ui-mode";
|
|
|
|
export class UnavailablePhase extends Phase {
|
|
public readonly phaseName = "UnavailablePhase";
|
|
start(): void {
|
|
globalScene.ui.setMode(UiMode.UNAVAILABLE, () => {
|
|
globalScene.phaseManager.unshiftNew("LoginPhase", true);
|
|
this.end();
|
|
});
|
|
}
|
|
}
|