Skip to content

WorldFx beta ​

Interface of @v12-engine/client/lite-views

ts
export interface WorldFx

The effects, the sky and the weather of a world, made by createWorldFx: each part, and what the world is given of them (parts, slot)

Members ​

clouds ​

ts
readonly clouds: CloudLayerView;

The cloud layer over the map

fx ​

ts
readonly fx: FxView;

The world's effects

mapDecals ​

ts
readonly mapDecals: MapDecals;

The marks laid on the ground of the map (MapEnvironment.decals)

mapFx ​

ts
readonly mapFx: MapFxPart;

The effects playing at places of the map (MapEnvironment.fx), on fx

parts ​

ts
readonly parts: readonly EnvironmentPart[];

LiteWorldOptions.environmentParts

sky ​

ts
readonly sky?: SkyView;

The sky's dome: none where WorldFxOptions.sky is false

slot ​

ts
readonly slot: (context: LiteWorldContext) => FxSlot & {
        play(effect: string | FxDef, options?: FxPlay): FxHandle;
    };

LiteWorldOptions.fx

weather ​

ts
readonly weather: WeatherPart;

What falls from the sky: rain and snow