Skip to content

WeatherLook beta ​

Interface of @v12-engine/client

ts
export interface WeatherLook

Weather that falls, as particles about the camera (GameView.world.weather): how many a second at its most, how fast, how long each lasts, how big, its colour, and whether each is a streak along the way it falls (rain) or drifts (snow). The rest are what the map's weather has when it says nothing of them (MapWeather)

Members ​

color ​

ts
color: readonly [number, number, number, number];

RGBA, 0 to 1 each

direction ​

ts
direction?: WeatherDirection;

Which way it falls: with the wind when left out

lifetime ​

ts
lifetime: number;

How long each lasts, in seconds

rate ​

ts
rate: number;

Particles a second at its most, over the whole box around the camera

settle ​

ts
settle?: number;

How much it tints the ground its colour as it falls, 0 to 1: none when left out

size ​

ts
size: readonly [number, number];

The smallest and the largest size of a particle, in cells; each gets one in between

sound ​

ts
sound?: string;

A sound that loops while it falls, by name, and how loud at its most

speed ​

ts
speed: number;

How fast each falls, in cells a second

splashes ​

ts
splashes?: number;

Splashes where it meets the ground, 0 to 1: none when left out

streaks ​

ts
streaks?: boolean;

Whether each is a streak stretched along the way it falls (rain) instead of a drifting flake (snow)

swing ​

ts
swing?: number;

How much each swings side to side as it falls, 0 to 1: none when left out

volume ​

ts
volume?: number;

How loud the sound is at its most, 0 to 1