Skip to content

MapWeather beta ​

Interface of @v12-engine/client

ts
export interface MapWeather

Rain or snow falling over the map. What it says goes over its kind's look (WeatherLook, the client's or the game's): what it leaves out is the look's

Members ​

amount ​

ts
amount: number;

How much falls, 0..1

areas ​

ts
areas?: MapWeatherArea[];

Where it falls: in these places only (it rains over the swamp, not the hills). All over the map when left out

color ​

ts
color?: Rgb;

Its colour, and how much it shows, 0 to 1: the look's when left out

direction ​

ts
direction?: WeatherDirection;

Which way it falls: with the wind (MapWind) when left out

kind ​

ts
kind: string;

Rain, snow, or a kind of the game's own, which its view draws (GameView.world.weather)

opacity ​

ts
opacity?: number;

How much of what is behind shows through, 0 to 1; the look's when left out

settle ​

ts
settle?: number;

How white it leaves the ground, 0 (none) to 1, the more the more falls: the look's when left out

size ​

ts
size?: number;

How big the drops or flakes are, and how fast they fall, as a factor on the look's: 1 when left out

sound ​

ts
sound?: string;

A sound that loops while it falls, by its name (a file made to loop), and how loud at its most: louder the more falls

speed ​

ts
speed?: number;

How fast it falls, as a factor on the look's: 1 when left out

splashes ​

ts
splashes?: number;

Small splashes where drops meet the ground, 0 (none) to 1: the look's when left out. At medium quality and up

swing ​

ts
swing?: number;

How much each swings side to side as it falls, 0 (straight) to 1: snow's flutter. The look's when left out

volume ​

ts
volume?: number;

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