screeps-cartographer
Version:
An advanced (and open source) movement library for Screeps
8 lines (7 loc) • 383 B
TypeScript
export declare const isHighway: (roomName: string) => boolean;
export declare const isCenterRoom: (roomName: string) => boolean;
export declare const isSourceKeeperRoom: (roomName: string) => boolean;
/**
* Returns the remaining slice of the path (not including start)
*/
export declare const slicedPath: (path: RoomPosition[], start: number, reverse?: boolean) => RoomPosition[];