Skip to content

FoliageIgnite beta ​

Interface of @v12-engine/engine

ts
export interface FoliageIgnite extends Cancellable

A cell of grass about to catch fire (the foliageIgnite hook): set alight (ignite, an ability) or lit by a cell burning beside it. cancel() keeps it from catching; chance is a handler's to change (a wet valley, a blessed grove)

Members ​

by ​

ts
readonly by?: Entity;

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

cause ​

ts
readonly cause: FoliageCause;

Whether it was set alight (ignite), caught from a neighbour (spread), or caught from a burning thing beside it (burning: a tree of the burning pack, BurningOptions.lightsFoliage)

cell ​

ts
readonly cell: number;

The cell's index in the layer

chance ​

ts
chance: number;

How likely it is to catch, 0 to 1, as the style, the wind, the slope and the wet make it: 1 for one set alight. What a handler leaves it at is held to 0 to 1 (more than 1 is sure, less than 0 never)

from ​

ts
readonly from?: number;

The burning cell it catches from, for a spread

layer ​

ts
readonly layer: string;

The layer the cell is of

thing ​

ts
readonly thing?: Entity;

The burning thing it catches from, for one caught from a burning thing (burning)

x ​

ts
readonly x: number;

The cell's middle along the map's x axis

z ​

ts
readonly z: number;

The cell's middle along the map's z axis