Room Shape Walls
Functions
Section titled “Functions”getVanillaWallGridIndexSetForRoomShape()
Section titled “getVanillaWallGridIndexSetForRoomShape()”getVanillaWallGridIndexSetForRoomShape(
roomShape):ReadonlySet<int>
Defined in: packages/isaacscript-common/src/functions/roomShapeWalls.ts:87
Helper function to get the set of grid indexes that represent where the walls are supposed to be in a given room shape.
This function only works reliably in vanilla rooms because in a modded room, it is possible to place walls in a non-standard location.
Parameters
Section titled “Parameters”roomShape
Section titled “roomShape”RoomShape
Returns
Section titled “Returns”ReadonlySet<int>
isVanillaWallGridIndex()
Section titled “isVanillaWallGridIndex()”isVanillaWallGridIndex(
gridIndex):boolean
Defined in: packages/isaacscript-common/src/functions/roomShapeWalls.ts:281
Helper function to determine if a given grid index should have a wall generated by the vanilla game. This is useful as a mechanism to distinguish between real walls and custom walls spawned by mods.
This function properly handles the special cases of the Mother boss room and the Home closet rooms, which are both non-standard room shapes.
Parameters
Section titled “Parameters”gridIndex
Section titled “gridIndex”int
Returns
Section titled “Returns”boolean
