BurnsDef beta
Interface of @v12-engine/engine
export interface BurnsDefHow 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
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
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
seconds?: number;Seconds it burns before it is burnt down: 20 when left out
wood
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