Skip to content

FOLIAGE_STATE beta ​

Variable of @v12-engine/engine

ts
FOLIAGE_STATE: {
    readonly whole: 0;
    readonly flattened: 1;
    readonly cut: 2;
    readonly burning: 3;
    readonly burnt: 4;
    readonly growing: 5;
}

What has happened to a cell of grass or bushes, as the values of the layer's state layer (foliageStateLayer): whole (0: as it grew, and what a cell never touched is), flattened (crushed under what walked over it, or by ruin), cut (down to stubble: fire does not cross it), burning, burnt (charred: by a fire, or scorched by ruin), growing (coming back to whole). The style stays in the layer itself, so that what grows back is what stood there. Values past these are kept for states to come