Skip to content

BurningLook beta ​

Interface of @v12-engine/client

ts
export interface BurningLook

How something looks while it burns (UnitLook.burning, GameView.units.burning), in a game with the burning pack (burningPack, onFire): an effect on it (the ready-made fire, flames, embers, smoke and a light, when left out), a sound as it catches, a colour over it, and the colour it chars to as it burns. What a field leaves out is the game's, then the client's. View only: the rules say what burns, for how long, and what kind of burning it is (how), which how here says the look of

Members ​

at ​

ts
at?: string | readonly string[];

A point of its model the effect plays at, or each of several (['crown', 'trunk']): over its middle when left out

char ​

ts
char?: [number, number, number] | false;

The colour it chars to as it burns, from its own at the start to this when it burns down (0..1 each, multiplied into its colours): near black when left out; false keeps its colours. Kept on what was put out, as far as it burnt

fx ​

ts
fx?: string | FxDef | false;

The effect on it while it burns, by name in GameView.fx.defs or as a definition: fire when left out; false for none

how ​

ts
how?: Record<string, BurningLook>;

Said otherwise for a kind of burning (BurnsDef.how: withered, frozen), over this, by the word the rules give it

light ​

ts
light?: boolean;

Whether its effect gives light (the effect's light), for the nearest few that burn (ViewBurning.lights): yes when left out

params ​

ts
params?: FxParams;

Knobs given to the effect, over its own: its size goes by how tall the thing is when left out

sound ​

ts
sound?: string;

A sound of the game's as it catches, heard from where it stands

tint ​

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

A colour over it from the moment it catches (0..1 each), as frost's blue or a blight's green: none when left out