Skip to content

MapPath beta ​

Interface of @v12-engine/engine

ts
export interface MapPath

A named line of the map, through points in order, with a width: world.map.path('road') (see Path)

Members ​

color ​

ts
color?: [number, number, number];

What it is drawn in, in the editor

id ​

ts
id: number;

The editor's, see MapRegion.id

keepClear ​

ts
keepClear?: boolean;

Nothing may be built on it: a road the invaders need to get through

name ​

ts
name: string;

What the rules know it by. No two things on a map have the same, whatever they are

paint ​

ts
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 ​

ts
points: Vec2[];

The points of the path in order, in cells

profile ​

ts
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 ​

ts
width: number;

How wide it is, in cells: what it paints and keeps clear, and what Path.contains says is on it