isaacscript-common
Version:
Helper functions and features for IsaacScript mods.
20 lines (17 loc) • 734 B
text/typescript
import { RoomShape } from "isaac-typescript-definitions";
const ONE_BY_ONE_WIDTH = 15;
const TWO_BY_ONE_WIDTH = 28;
export const ROOM_SHAPE_TO_GRID_WIDTH = {
[]: ONE_BY_ONE_WIDTH, // 1
[]: ONE_BY_ONE_WIDTH, // 2
[]: ONE_BY_ONE_WIDTH, // 3
[]: ONE_BY_ONE_WIDTH, // 4
[]: ONE_BY_ONE_WIDTH, // 5
[]: TWO_BY_ONE_WIDTH, // 6
[]: TWO_BY_ONE_WIDTH, // 7
[]: TWO_BY_ONE_WIDTH, // 8
[]: TWO_BY_ONE_WIDTH, // 9
[]: TWO_BY_ONE_WIDTH, // 10
[]: TWO_BY_ONE_WIDTH, // 11
[]: TWO_BY_ONE_WIDTH, // 12
} as const satisfies Record<RoomShape, int>;