✨Feature: implement dungeon state management with room expansion and exit handling
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user