isaacscript-common
Version:
Helper functions and features for IsaacScript mods.
18 lines (16 loc) • 618 B
text/typescript
import {
DoorSlot,
DoorSlotFlag,
DoorSlotFlagZero,
} from "isaac-typescript-definitions";
export const DOOR_SLOT_TO_DOOR_SLOT_FLAG = {
[]: DoorSlotFlagZero, // -1
[]: DoorSlotFlag.LEFT_0, // 0
[]: DoorSlotFlag.UP_0, // 1
[]: DoorSlotFlag.RIGHT_0, // 2
[]: DoorSlotFlag.DOWN_0, // 3
[]: DoorSlotFlag.LEFT_1, // 4
[]: DoorSlotFlag.UP_1, // 5
[]: DoorSlotFlag.RIGHT_1, // 6
[]: DoorSlotFlag.DOWN_1, // 7
} as const satisfies Record<DoorSlot, DoorSlotFlag>;