FoliageIgnite beta
Interface of @v12-engine/engine
export interface FoliageIgnite extends CancellableA 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
readonly by?: Entity;Who set alight the fire it is of, where someone did
cause
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
readonly cell: number;The cell's index in the layer
chance
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
readonly from?: number;The burning cell it catches from, for a spread
layer
readonly layer: string;The layer the cell is of
thing
readonly thing?: Entity;The burning thing it catches from, for one caught from a burning thing (burning)
x
readonly x: number;The cell's middle along the map's x axis
z
readonly z: number;The cell's middle along the map's z axis