Doors
Functions
closeAllDoors
▸ closeAllDoors(): void
Returns
void
Defined in
packages/isaacscript-common/src/functions/doors.ts:34
closeDoorFast
▸ closeDoorFast(door
): void
Use this instead of the GridEntityDoor.Close
method if you want the door to immediately close
without an animation.
Parameters
Name | Type |
---|---|
door | GridEntityDoor |
Returns
void
Defined in
packages/isaacscript-common/src/functions/doors.ts:44
doorSlotFlagToDoorSlot
▸ doorSlotFlagToDoorSlot(doorSlotFlag
): DoorSlot
Parameters
Name | Type |
---|---|
doorSlotFlag | DoorSlotFlagValue |
Returns
DoorSlot
Defined in
packages/isaacscript-common/src/functions/doors.ts:51
doorSlotFlagsToDoorSlots
▸ doorSlotFlagsToDoorSlots(doorSlotFlags
): readonly DoorSlot
[]
Parameters
Name | Type |
---|---|
doorSlotFlags | BitFlags <DoorSlotFlagValue > |
Returns
readonly DoorSlot
[]
Defined in
packages/isaacscript-common/src/functions/doors.ts:56
doorSlotToDirection
▸ doorSlotToDirection(doorSlot
): Direction
Parameters
Name | Type |
---|---|
doorSlot | DoorSlot |
Returns
Direction
Defined in
packages/isaacscript-common/src/functions/doors.ts:71
doorSlotToDoorSlotFlag
▸ doorSlotToDoorSlotFlag(doorSlot
): DoorSlotFlag
Parameters
Name | Type |
---|---|
doorSlot | DoorSlot |
Returns
DoorSlotFlag
Defined in
packages/isaacscript-common/src/functions/doors.ts:75
doorSlotsToDoorSlotFlags
▸ doorSlotsToDoorSlotFlags(doorSlots
): BitFlags
<DoorSlotFlag
>
Helper function to convert an array of door slots or a set of door slots to the resulting bit flag number.
Parameters
Name | Type |
---|---|
doorSlots | readonly DoorSlot [] | ReadonlySet <DoorSlot > |
Returns
BitFlags
<DoorSlotFlag
>
Defined in
packages/isaacscript-common/src/functions/doors.ts:83
getAngelRoomDoor
▸ getAngelRoomDoor(): GridEntityDoor
| undefined
Returns
GridEntityDoor
| undefined
Defined in
packages/isaacscript-common/src/functions/doors.ts:99
getBlueWombDoor
▸ getBlueWombDoor(): GridEntityDoor
| undefined
Helper function to get the door that leads to the off-grid room that contains the hole to the Blue Womb. (In vanilla, the door will only appear in the It Lives Boss Room.)
Returns undefined if the room has no Blue Womb doors.