Skip to content

FoliageFireLook beta ​

Interface of @v12-engine/client

ts
export interface FoliageFireLook

How fire in grass and bushes looks and sounds (FoliageLook.fire): each part changed, or false for none of it. A style says its own (styles[n].fire): dry grass that burns bright, a thicket that smokes. The glow of the burning edge (color, bright) and the ash (scorch) are the layer's; the rest is each style's

Members ​

bright ​

ts
bright?: number;

How big and bright it burns, 1 as made: dry grass a little over 1

catches ​

ts
catches?: string | false;

The sound of a cell catching where the player looks, by name: the client's own when left out; false for none

color ​

ts
color?: Readonly<Rgb>;

The colour of the flames and of the glowing edge as a blade chars: orange when left out. Red, green and blue alone: a glow is light added, how strong is bright

embers ​

ts
embers?: string | false;

Embers flying off it, an effect by name: the ready-made embers when left out

flames ​

ts
flames?: string | false;

The flames along the front, an effect of the view's by name (GameView.fx.defs, or a ready-made one: fire, burning-ground): the client's own low flames over the ground when left out. One plays over a few burning cells together, the nearest the camera's

light ​

ts
light?: boolean | {
        color?: Readonly<Rgb>;
        range?: number;
        intensity?: number;
    };

Whether the front lights what is around it, and how (a few lights along it, none on low quality): yes when left out

scorch ​

ts
scorch?: number | false;

How dark the ash left on the ground under what burnt is (ruined.paint.burnt), 0 to 1: 1 when left out, false for none

smoke ​

ts
smoke?: string | false;

The smoke over it, an effect by name, leaning with the wind: the ready-made smoke when left out

smoky ​

ts
smoky?: number;

How much smoke it gives, 1 as made, 0 for none: a thicket over 1

sound ​

ts
sound?: string | false;

The sound of it burning, looped, louder the more burns near the camera, by name: the client's own crackle when left out; false for none