Skip to content

FoliageCell beta ​

Interface of @v12-engine/engine

ts
export interface FoliageCell

A cell of grass or bushes as the rules know it now (foliageAt)

Members ​

burning ​

ts
burning: boolean;

Whether it burns now

by ​

ts
by?: EntityId;

Who set alight the fire it burns of, where someone did

cell ​

ts
cell: number;

The cell's index in the layer, row by row

left ​

ts
left: number;

Seconds it still burns, 0 where it does not

state ​

ts
state: FoliageState;

What has happened to it (FOLIAGE_STATE)

style ​

ts
style: FoliageStyleDef;

What that style is to the rules (foliageStyle)

value ​

ts
value: number;

The style painted there: the layer's value, 1 to 255