MapFx beta
Interface of @v12-engine/client
export interface MapFxAn 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
fx: string;The game's effect it plays, by name (GameView.fx.defs)
height
height?: number;How high over the ground, in cells: on it when left out
id
id: number;Its own, among the map's effects: what the editor and the map's names know it by
name
name?: string;What it is called: code finds it by it (client.mapFx.named, the map's names)
on
on?: boolean;Stopped: plays nothing until it is put on (false); on when left out
params
params?: Record<string, unknown>;Its knobs, over the effect's own (FxDef.params)
quality
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
scale?: number;How much bigger: sizes, speeds, reaches. 1 when left out
turn
turn?: number;Turned around the up axis, in radians: what goes one way goes that way
when
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
x: number;The effect's x position in cells
z
z: number;The effect's z position in cells