MapPath beta
Interface of @v12-engine/engine
export interface MapPathA named line of the map, through points in order, with a width: world.map.path('road') (see Path)
Members
color
color?: [number, number, number];What it is drawn in, in the editor
id
id: number;The editor's, see MapRegion.id
keepClear
keepClear?: boolean;Nothing may be built on it: a road the invaders need to get through
name
name: string;What the rules know it by. No two things on a map have the same, whatever they are
paint
paint?: string;A tile of the game's, by id, that the ground under it is painted with, over the map's own paint
points
points: Vec2[];The points of the path in order, in cells
profile
profile?: PathProfile;A road's or a river's bed under it, carved in the ground and painted each time the terrain is worked out (the map's own heights stay as they are, so the bed follows the path wherever its points go): PathProfile
width
width: number;How wide it is, in cells: what it paints and keeps clear, and what Path.contains says is on it