Skip to content

BurningSpread beta ​

Interface of @v12-engine/engine

ts
export interface BurningSpread

How fire passes from a burning thing to what burns about it (BurningOptions.spread): how far, how likely, how much the wind decides, how often it tries. It passes to what stands (trees, buildings, a wall): a unit that burns is set alight by a call or an ability alone

Members ​

chance ​

ts
chance?: number;

How likely a try is to light one thing within reach in still air, 0 to 1: 0.15 when left out

every ​

ts
every?: number;

Seconds between a burning thing's tries: 1 when left out

reach ​

ts
reach?: number;

How far it reaches, edge to edge, in cells: 1.5 when left out

wind ​

ts
wind?: number;

How much the wind decides which way it goes (MapEnvironment.wind), 0 (not at all) and up: 1 when left out