ProductionItem beta
Interface of @v12-engine/engine
ts
export interface ProductionItemOne thing a building makes: a unit, an upgrade, a revive or a morph
Members
duration
ts
duration: number;Seconds it takes in all
id
ts
id: string;Unit type, upgrade id, the id of the hero to bring back, or the type the building turns into
kind
ts
kind: 'unit' | 'upgrade' | 'revive' | 'morph';What it makes: a unit, an upgrade, a revived hero or a morph into another type
paid
ts
paid?: Cost;What was paid, when that does not follow from the id
progress
ts
progress: number;Seconds of work done