WantReport beta
Interface of @v12-engine/engine/ai
ts
export interface WantReportOne want as the report shows it: what it is, how far along, what it waits for (status), the steps to it, what it holds in the purse
Members
by
ts
by?: string;Who wants it: order, production, economy, a goal's or a rule's id
count
ts
count: number;How many of the type it asks for
have
ts
have: number;How many of the type the player has now
holds
ts
holds?: Cost;What the want holds in the purse
id
ts
id: string;The want's id, which the plan knows it by
keep
ts
keep?: true;Whether it is a standing want, built anew when lost
onItsWay
ts
onItsWay: number;How many a worker is on its way to build or the queue is making
priority
ts
priority: number;How important the want is; a higher one is served first and holds its money in the purse first
status
ts
status: string;What it waits for or how far it is, in words
steps
ts
steps: string[];The steps to the type that are still to take, in words
type
ts
type: string;The id of the unit type the want is for