BurnStart beta
Interface of @v12-engine/engine
export interface BurnStart extends CancellableA thing about to catch fire (the burnStart hook): cancel() keeps it from catching; chance is a handler's to change (a wet grove, a building that does not burn while it is being built). Asked once a try
Members
by
readonly by?: Entity;Who set alight the fire it is of, where someone did
cause
readonly cause: BurnCause;How it catches
cell
readonly cell?: number;The burning cell it catches from, by its index in that layer, for one caught from grass (foliage)
chance
chance: number;How likely it is to catch, 0 to 1: 1 for one set alight, the spread's chance in the wind for one caught from a burning thing, the grass's for one caught from grass (FoliageFire.lights). What a handler leaves it at is held to 0 to 1 (more than 1 is sure, less than 0 never)
entity
readonly entity: Entity;What is about to catch
from
readonly from?: Entity;The burning thing it catches from, for a spread
how
readonly how: string;What kind of burning it is (BurnsDef.how)
layer
readonly layer?: string;The layer of grass of the burning cell it catches from, for one caught from grass (foliage)