mirror of
https://github.com/MartinKral/Slash-The-Hordes
synced 2024-12-26 03:38:58 +00:00
15 lines
565 B
TypeScript
15 lines
565 B
TypeScript
import { ModalWindowManager } from "../../Services/ModalWindowSystem/ModalWindowManager";
|
|
import { MenuModalWindowTypes } from "./MenuModalWindowTypes";
|
|
|
|
export class MenuModalLauncher {
|
|
public constructor(private modalWindowManager: ModalWindowManager) {}
|
|
|
|
public async openUpgradesWindow(): Promise<void> {
|
|
await this.modalWindowManager.showModal(MenuModalWindowTypes.Upgrades, {});
|
|
}
|
|
|
|
public async openAudioSettingsWindow(): Promise<void> {
|
|
await this.modalWindowManager.showModal(MenuModalWindowTypes.AudioSettings, {});
|
|
}
|
|
}
|