isaacscript-common
Version:
Helper functions and features for IsaacScript mods.
19 lines (16 loc) • 571 B
text/typescript
import type {
DoorSlotFlag,
RoomShape,
RoomType,
} from "isaac-typescript-definitions";
import type {
CustomStageLua,
CustomStageRoomMetadata,
} from "../CustomStageTSConfig";
export interface CustomStage extends CustomStageLua {
/** A map that makes it easier to select certain room type/shape/door combinations. */
readonly roomTypeMap: RoomTypeMap;
}
export type RoomTypeMap = ReadonlyMap<RoomType, RoomShapeMap>;
type RoomShapeMap = ReadonlyMap<RoomShape, RoomDoorSlotMap>;
type RoomDoorSlotMap = ReadonlyMap<DoorSlotFlag, CustomStageRoomMetadata[]>;