Skip to content

MapPoint beta ​

Interface of @v12-engine/engine

ts
export interface MapPoint

A named spot of the map, facing a way: world.map.point('spawn')

Members ​

color ​

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

What it is drawn in, in the editor

facing ​

ts
facing: number;

Radians, the way entities face: 0 is along +z

id ​

ts
id: number;

The editor's, see MapRegion.id

name ​

ts
name: string;

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

x ​

ts
x: number;

Where it stands on the map's x axis, in cells

z ​

ts
z: number;

Where it stands on the map's z axis, in cells