MapWeather beta
Interface of @v12-engine/client
export interface MapWeatherRain 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
amount: number;How much falls, 0..1
areas
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
color?: Rgb;Its colour, and how much it shows, 0 to 1: the look's when left out
direction
direction?: WeatherDirection;Which way it falls: with the wind (MapWind) when left out
kind
kind: string;Rain, snow, or a kind of the game's own, which its view draws (GameView.world.weather)
opacity
opacity?: number;How much of what is behind shows through, 0 to 1; the look's when left out
settle
settle?: number;How white it leaves the ground, 0 (none) to 1, the more the more falls: the look's when left out
size
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
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
speed?: number;How fast it falls, as a factor on the look's: 1 when left out
splashes
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
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
volume?: number;How loud the sound is at its most, 0..1