Skip to content

MapDecal beta ​

Interface of @v12-engine/client

ts
export interface MapDecal

A mark laid on the ground at a place of the map: a scorch, blood, the ruts of a road, a rune. A picture projected on the ground as it is there, up and down its slopes, turned, sized, tinted and faded. Only drawn: nothing of it reaches the rules

Members ​

facing ​

ts
facing?: number;

Turned around the up axis, in radians, the way facings turn: not at all when left out

fade ​

ts
fade?: number;

How faded it is, 0 (as drawn) to 1 (gone): an old scorch, a worn rune. 0 when left out

id ​

ts
id: number;

Its id among the map's of its kind: what the editor finds it by, kept as it is moved and as others come and go

look ​

ts
look: string;

What it is: a decal look of the game's by its id (GameView.ground.decals), or a picture by its path in textures/ (the map's own files first, see Assets), drawn as it is

name ​

ts
name?: string;

What the editor and its search call it, where it is given a name

size ​

ts
size?: number;

How wide it is, in cells: its look's (2) when left out

tint ​

ts
tint?: Rgb;

A colour its picture is multiplied by, over its look's: as it is (white) when left out

x ​

ts
x: number;

The decal's x position in cells

z ​

ts
z: number;

The decal's z position in cells