UNPKG

malwoden

Version:

![alt text](./coverage/badge-lines.svg) ![alt text](./coverage/badge-statements.svg) ![alt text](./coverage/badge-functions.svg) ![alt text](./coverage/badge-branches.svg)

18 lines (17 loc) 638 B
import { Table, Vector2 } from "../struct"; import { Rect } from "../struct/rect"; export interface ConnectData { groups: Vector2[][]; paths: Vector2[][]; } /** * Connects areas of the map to ensure they are all connected. * * For instance, if you're using an alive value of 1 for walls, * then this can connect the dead value of 0 to ensure all * squares on the map are accessable. * * @param value The value to connect (default this.deadValue) */ export declare function connect<T>(table: Table<T>, value: T): ConnectData; export declare function getSimpleHallwayFromRooms(a: Rect, b: Rect): Vector2[];