Skip to content

five-on-it / apps/client/src/renderer/ground-cover / GroundCover

Interface: GroundCover ​

Defined in: apps/client/src/renderer/ground-cover.ts:279

A level's ground cover in a scene.

Properties ​

counts ​

readonly counts: object

Defined in: apps/client/src/renderer/ground-cover.ts:283

What is drawn: the cells, and the instances of each kind.

cells ​

cells: number

flowers ​

flowers: number

grass ​

grass: number

stones ​

stones: number

Methods ​

dispose() ​

dispose(): void

Defined in: apps/client/src/renderer/ground-cover.ts:285

Takes it all away.

Returns ​

void


update() ​

update(rect): void

Defined in: apps/client/src/renderer/ground-cover.ts:281

Makes and draws the cells the view rectangle reaches (nothing changes while they stay the same).

Parameters ​

rect ​

ViewRect

Returns ​

void