2022-12-16 11:49:52 +01:00
|
|
|
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, {});
|
|
|
|
}
|
2022-12-21 14:08:49 +01:00
|
|
|
|
|
|
|
public async openAudioSettingsWindow(): Promise<void> {
|
|
|
|
await this.modalWindowManager.showModal(MenuModalWindowTypes.AudioSettings, {});
|
|
|
|
}
|
2022-12-16 11:49:52 +01:00
|
|
|
}
|