EconomyBase beta
Interface of @v12-engine/engine/ai
ts
export interface EconomyBaseOne base as the economy sees it (ai.economy.bases(), the report): its deposits, what they serve, the workers it wants and has on each resource
Members
base
ts
base: Base;The view's base
deposits
ts
deposits: Partial<Record<ResourceId, EntityState[]>>;Its deposits it gathers from, by resource: those of the money with a hall by them (or something of its own on them), the rest near it
serves
ts
serves: Partial<Record<ResourceId, number>>;How many workers its deposits of each resource serve at once
wants
ts
wants: Partial<Record<ResourceId, number>>;How many it wants on each resource: what it is to have, no more than what is served where it saturates
working
ts
working: Partial<Record<ResourceId, number[]>>;The workers at work on each resource at it, by id