EconomyReport beta
Interface of @v12-engine/engine/ai
ts
export interface EconomyReportThe economy as the report shows it (AiReport.economy.bases, fled): each base with what it wants and has, the workers that fled, how many it trains, what the next expansion waits for
Members
bases
ts
bases: {
at: [number, number];
hall: number;
workers: Record<ResourceId, [working: number, wants: number, serves: number]>;
}[];The bases, each with where it is, its hall's entity id and per resource the workers working, wanted and served by it
expansion
ts
expansion?: string;Where the next hall goes, and what it waits for: the build plan's status of the want
fled
ts
fled: {
unit: number;
from: [number, number];
since: number;
}[];The workers that fled a raid, each with the unit's id, the place it fled and the tick it fled at
workers
ts
workers: [have: number, want: number];Workers it has, those queued counted, and what its bases want together