Feature: implement dungeon state management with room expansion and exit handling

This commit is contained in:
Keith Solomon
2026-03-15 13:05:48 -05:00
parent 120e144b3f
commit 1ff20723ec
3 changed files with 300 additions and 2 deletions

View File

@@ -4,7 +4,7 @@ import {
findTableByCode,
} from "@/data/contentHelpers";
import type { ContentPack, ExitType, RoomClass } from "@/types/content";
import type { RoomExitState, RoomState } from "@/types/state";
import type { DungeonLevelState, RoomExitState, RoomState } from "@/types/state";
import { lookupTable, type TableLookupResult } from "./tables";
import type { DiceRoller } from "./dice";
@@ -186,7 +186,7 @@ export function generateLevel1StartRoom(
};
}
export function createLevelShell(level: number) {
export function createLevelShell(level: number): DungeonLevelState {
return {
level,
themeName: level === 1 ? "The Entry" : undefined,