Skip to content

EconomyMemory beta ​

Interface of @v12-engine/engine/ai

ts
export interface EconomyMemory

What the economy remembers between thinks, as a save keeps it: the workers that fled a raid

Members ​

fled ​

ts
fled: Record<string, {
        from: Vec2;
        to: Vec2;
        since: number;
        clear?: number;
    }>;

Each worker that fled, by id: the base it fled (its middle), where to, since when, and since when its base stood clear

material ​

ts
material?: {
        more: number;
        since?: number;
        easy?: number;
        moved?: Record<string, number>;
    };

Workers more on the other resource at home, while it runs short with the money piling up (AI2): one more each BLOCKED seconds it stays so, at most MORE_AT_MOST, one fewer each twice that once it is not. Since when it has been short (since) or not (easy), and who was sent to it lately (moved)

v ​

ts
v: 1;

The version of the memory's format: 1 so far