Skip to content

mapCells beta ​

Function of @v12-engine/engine

ts
export declare function mapCells(map: GameMap, registry: Registry, terrain?: Terrain, steep?: boolean): {
    open: Uint8Array;
    built: Uint8Array;
};

Which cells of a map something on foot can stand on (1) and which have a building or a mine on them (built): for the checks, and for what the editor shows of where one can walk and build. steep counts slopes too steep to walk