UNPKG

isaacscript-common

Version:

Helper functions and features for IsaacScript mods.

28 lines 1.35 kB
import type { BossID } from "isaac-typescript-definitions"; import { RoomType } from "isaac-typescript-definitions"; /** Helper function to fill every possible level grid square with a red room. */ export declare function fillLevelWithRedRooms(): void; /** * Helper function to get the boss IDs of all of the Boss Rooms on this floor. (This is equivalent * to the sub-type of the room data.) * * Note that this will only look at Boss Rooms inside of the grid, so e.g. Reverse Emperor card * rooms will not count. */ export declare function getLevelBossIDs(): readonly BossID[]; /** * Helper function to check if the current floor has a Boss Room that matches the boss ID provided. * * This function is variadic, meaning that you can pass as many boss IDs as you want to check for. * It will return true if one or more of the boss IDs are matched. */ export declare function levelHasBossID(...bossIDs: readonly BossID[]): boolean; /** * Helper function to check to see if the current floor has one or more of a specific room type in * it. * * This function is variadic, meaning that you can pass as many room types as you want to check for. * This function will return true if any of the room types are found. */ export declare function levelHasRoomType(...roomTypes: readonly RoomType[]): boolean; //# sourceMappingURL=level.d.ts.map