forked from phenom/healer-man
Release Healer Man 0.1.32
This commit is contained in:
1 parent
d3d6aaebdb
commit
6dcb1034e5
102 files changed
+10772
-788
No files matched your search
@@ -4,8 +4,6 @@ let partyManagementPanelModule: Promise<typeof import("./PartyManagementPanel")>
|
||||
let loadedPartyManagementPanel: typeof import("./PartyManagementPanel")["PartyManagementPanel"] | null = null;
|
||||
let bossGuidePanelModule: Promise<typeof import("./BossGuidePanel")> | null = null;
|
||||
let loadedBossGuidePanel: typeof import("./BossGuidePanel")["BossGuidePanel"] | null = null;
|
||||
let companionManastormPanelModule: Promise<typeof import("./CompanionManastormPanel")> | null = null;
|
||||
let loadedCompanionManastormPanel: typeof import("./CompanionManastormPanel")["CompanionManastormPanel"] | null = null;
|
||||
|
||||
export function loadGameRuntime() {
|
||||
if (!gameRuntimeModule) {
|
||||
@@ -64,31 +62,11 @@ export function getLoadedBossGuidePanel() {
|
||||
return loadedBossGuidePanel;
|
||||
}
|
||||
|
||||
export function loadCompanionManastormPanel() {
|
||||
if (!companionManastormPanelModule) {
|
||||
companionManastormPanelModule = import("./CompanionManastormPanel")
|
||||
.then((module) => {
|
||||
loadedCompanionManastormPanel = module.CompanionManastormPanel;
|
||||
return module;
|
||||
})
|
||||
.catch((error: unknown) => {
|
||||
companionManastormPanelModule = null;
|
||||
throw error;
|
||||
});
|
||||
}
|
||||
return companionManastormPanelModule;
|
||||
}
|
||||
|
||||
export function getLoadedCompanionManastormPanel() {
|
||||
return loadedCompanionManastormPanel;
|
||||
}
|
||||
|
||||
export async function preloadSharedGameplayResources(originalMediaEnabled: boolean): Promise<void> {
|
||||
await Promise.all([
|
||||
loadGameRuntime(),
|
||||
loadPartyManagementPanel(),
|
||||
loadBossGuidePanel(),
|
||||
loadCompanionManastormPanel(),
|
||||
]);
|
||||
if (!originalMediaEnabled) return;
|
||||
const { ensureCombatMediaPack } = await import("../game/combatMediaPack");
|
||||
|
||||
Reference in new issue
Block a user