UNPKG

isaacscript-common

Version:

Helper functions and features for IsaacScript mods.

12 lines 594 B
import { RoomShape } from "isaac-typescript-definitions"; /** * Helper function to get all of the grid indexes between two grid indexes on either a horizontal or * vertical line, inclusive on both ends. * * If the first grid index is greater than the second grid index, the two will be swapped. * * This function will throw a run-time error if the two provided grid indexes are not on the same * horizontal or vertical line. */ export declare function getGridIndexesBetween(gridIndex1: int, gridIndex2: int, roomShape: RoomShape): readonly int[]; //# sourceMappingURL=gridIndex.d.ts.map