Skip to content

LaneDrawContext beta ​

Interface of @v12-engine/client

ts
export interface LaneDrawContext

What a lane's draw is handed (LaneEditor.draw): lines to draw with in the editor's view, which the editor clears and makes again as the item changes, whether the item is selected, the ground's height, and a point of the map by its name (a point, a region's middle, a unit placed and named there)

Members ​

color ​

ts
color: string;

The lane's colour, as CSS has it

heightAt ​

ts
heightAt(x: number, z: number): number;

The ground's height at a point, in cells

lines ​

ts
lines: WorldLines;

What the lane draws with: lines in the world

point ​

ts
point(name: string): {
        x: number;
        z: number;
    } | undefined;

A point of the map by name (a point, a region's middle, a named unit), or undefined for none

selected ​

ts
selected: boolean;

Whether the item is selected in the editor