Skip to content

WaterLook beta ​

Interface of @v12-engine/client

ts
export interface WaterLook

What the water of a map looks like. The client's when left out

Members ​

deep ​

ts
deep?: [number, number, number];

The colour of deep water, red, green, blue (0..1); a darker shade than the shallows when left out

falls ​

ts
falls?: WaterFalls;

The waterfalls (WaterFalls): found where the water spills over a cliff, down a ramp or over a step of the ground, and those placed by hand (MapEnvironment.waterfalls). As WATER_FALLS has them when left out; { on: false } for none

flow ​

ts
flow?: number;

How fast the water moves, cells a second. 0 is still. 0.25 when left out

opacity ​

ts
opacity?: number;

How much of what is under it shows through, 0..1: 0 is clear, 1 is not at all. 0.78 when left out

shallow ​

ts
shallow?: [number, number, number];

The colour of shallows, and of deep water

shore ​

ts
shore?: number;

How deep the water is before it is as thick as it gets, from the shore: a soft edge, in height. 0.4 when left out

waves ​

ts
waves?: WaterWaves;

The waves (WaterWaves): rolling in to the shore of a sea or a lake and breaking in foam on it, running down a river. As WATER_WAVES has them when left out; { on: false } for none