Skip to content

BurnStart beta ​

Interface of @v12-engine/engine

ts
export interface BurnStart extends Cancellable

A 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 ​

ts
readonly by?: Entity;

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

cause ​

ts
readonly cause: BurnCause;

How it catches

cell ​

ts
readonly cell?: number;

The burning cell it catches from, by its index in that layer, for one caught from grass (foliage)

chance ​

ts
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 ​

ts
readonly entity: Entity;

What is about to catch

from ​

ts
readonly from?: Entity;

The burning thing it catches from, for a spread

how ​

ts
readonly how: string;

What kind of burning it is (BurnsDef.how)

layer ​

ts
readonly layer?: string;

The layer of grass of the burning cell it catches from, for one caught from grass (foliage)