Files
healer-man/src/app/dungeonShellRuntimeBridge.ts
T
2026-09-13 13:21:27 -04:00

22 lines
615 B
TypeScript

import type { PartyRole } from "../game/partyRoles";
export interface DungeonShellRuntime {
enterDungeon: (dungeonId: string, playerRole?: PartyRole, settings?: DungeonEntrySettings) => boolean;
}
export interface DungeonEntrySettings {
readonly difficultyId?: string;
readonly bossDifficulty?: number;
readonly freshRun?: boolean;
}
let installedRuntime: DungeonShellRuntime | null = null;
export function registerDungeonShellRuntime(runtime: DungeonShellRuntime): void {
installedRuntime = runtime;
}
export function dungeonShellRuntime(): DungeonShellRuntime | null {
return installedRuntime;
}