Skip to content

1681-engine / index / WeatherLayerOptions

Interface: WeatherLayerOptions<K> ​

Defined in: src/ambient/WeatherLayer.ts:34

Type Parameters ​

Type Parameter
K extends string

Properties ​

bankDepth? ​

ts
optional bankDepth?: number;

Defined in: src/ambient/WeatherLayer.ts:39

Depth of fog banks (default 900_010).


depth? ​

ts
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 ​

ts
looks: Readonly<Partial<Record<K, WeatherLook>>>;

Defined in: src/ambient/WeatherLayer.ts:35


random? ​

ts
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? ​

ts
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? ​

ts
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).

Released under the MIT License.