Skip to content

WaterWaves beta ​

Interface of @v12-engine/client

ts
export interface WaterWaves

The waves of a map's water (WT1). Away from rivers, bands of crests lie along the shore and roll in to it, growing as they come and breaking in foam on the bank, washing up it in time with them. Water narrow enough to be a river (up to seven cells across), or whose surface falls, runs instead: ripples go downstream, foam streaks along its banks, the way its surface falls, else one way along all of it. Where the shore is, is worked out from the ground and the water when a map is shown and again where the editor (or the rules) change either. Not drawn at the low quality's effects

Members ​

foam ​

ts
foam?: Rgb;

The colour of their foam. Nearly white when left out

length ​

ts
length?: number;

Cells from one crest to the next. 3 when left out

on ​

ts
on?: boolean;

Whether there are waves at all: on when left out

reach ​

ts
reach?: number;

How far out from the shore they are seen, in cells, up to 24. 10 when left out

speed ​

ts
speed?: number;

Cells a second they come in at, and a river runs at. 1.2 when left out

strength ​

ts
strength?: number;

How much they show, 0..1: their crests' light and their foam. 0.6 when left out