Skip to content

BurnsDef beta ​

Interface of @v12-engine/engine

ts
export interface BurnsDef

How a thing burns (UnitTypeDef.burns, BurningOptions): for how long, what is left of it, whether its wood is kept, and what kind of burning it is. What a type does not say is the pack's, then what each field says it is when left out. Plain data: the editor writes it

Members ​

how ​

ts
how?: string;

What kind of burning it is, for the screen (the look's burning.how) and its death (death.how): burnt when left out. Another word for another kind: a blight that withers it, frost that shatters it

leaves ​

ts
leaves?: 'felled' | 'nothing' | (string & {});

What is left once it has burnt down: felled (it comes down, as a tree a blast brings down: the death's reason is felled), nothing (it burns away: the reason is burnt), or the id of a unit type put down where it stood (a charred stump, a heap of ash: the reason burnt too). felled when left out

seconds ​

ts
seconds?: number;

Seconds it burns before it is burnt down: 20 when left out

wood ​

ts
wood?: boolean;

Whether what it leaves keeps its wood: a resource left in its place (leaves a type with resource) holds what it had left of its own. No when left out, and what is left holds what its type says