1681-engine / index / WeatherLayerOptions
Interface: WeatherLayerOptions<K> ​
Defined in: src/ambient/WeatherLayer.ts:34
Type Parameters ​
| Type Parameter |
|---|
K extends string |
Properties ​
bankDepth? ​
optional bankDepth?: number;Defined in: src/ambient/WeatherLayer.ts:39
Depth of fog banks (default 900_010).
depth? ​
optional depth?: number;Defined in: src/ambient/WeatherLayer.ts:37
Depth of falling particles in the world layer: over the bodies, under the names (default 900_001).
looks ​
looks: Readonly<Partial<Record<K, WeatherLook>>>;Defined in: src/ambient/WeatherLayer.ts:35
random? ​
optional random?: () => number;Defined in: src/ambient/WeatherLayer.ts:45
Where randomness comes from (default Math.random); the look of a shower need not be shared between clients.
Returns ​
number
snap? ​
optional snap?: boolean;Defined in: src/ambient/WeatherLayer.ts:43
Round positions to whole world pixels (default true): pixel art wants it, smooth art may not.
splashDepth? ​
optional splashDepth?: number;Defined in: src/ambient/WeatherLayer.ts:41
Depth of splashes: with the ground effects, so a body standing in the rain is not splashed over (default 0).