@irysius/grid-math
Version:
Tools to assist with grid math and algorithms
12 lines • 588 B
TypeScript
declare module "@irysius/grid-math/pathfinding/tools" {
import { ICellCoord } from "@irysius/grid-math/CellCoord";
import { IVector2 } from "@irysius/grid-math/Vector2";
export function simpleSquare(start: ICellCoord): ICellCoord[];
/**
* Returns an iterator for the steps provided.
* @param steps
* @param timesToLoop Number of times to loop through the steps. For infinite loop, set this to 0.
*/
export function createPath<T extends IVector2>(steps: T[], timesToLoop?: number): IterableIterator<T>;
export function test(): void;
}