Skip to content

MapFx beta ​

Interface of @v12-engine/client

ts
export interface MapFx

An effect that plays at a place of the map for as long as the map is played (effects plan F3): a campfire, a chimney's smoke, a waterfall's mist. One of the game's effects by name (GameView.fx.defs), with knobs of its own. Only drawn: the rules do not see it, and every player has it with the map

Members ​

fx ​

ts
fx: string;

The game's effect it plays, by name (GameView.fx.defs)

height ​

ts
height?: number;

How high over the ground, in cells: on it when left out

id ​

ts
id: number;

Its own, among the map's effects: what the editor and the map's names know it by

name ​

ts
name?: string;

What it is called: code finds it by it (client.mapFx.named, the map's names)

on ​

ts
on?: boolean;

Stopped: plays nothing until it is put on (false); on when left out

params ​

ts
params?: Record<string, unknown>;

Its knobs, over the effect's own (FxDef.params)

quality ​

ts
quality?: 'low' | 'medium' | 'high';

The least quality it plays at (the quality's effects): a waterfall's mist only from medium. Every quality when left out

scale ​

ts
scale?: number;

How much bigger: sizes, speeds, reaches. 1 when left out

turn ​

ts
turn?: number;

Turned around the up axis, in radians: what goes one way goes that way

when ​

ts
when?: 'always' | 'night' | 'day' | {
        from: number;
        to: number;
    };

When it plays: always (the default), at night, by day, or between two hours of the day ({ from: 20, to: 6 })

x ​

ts
x: number;

The effect's x position in cells

z ​

ts
z: number;

The effect's z position in cells