Skip to content

TeamBoard beta ​

Interface of @v12-engine/engine/ai

ts
export interface TeamBoard

A team's board as the world keeps it (core.ai.teams, by team): plain data, kept in a save, never replicated

Members ​

known ​

ts
known: Record<string, {
        tick: number;
        bases: {
            owner: PlayerId;
            at: Vec2;
            last: number;
        }[];
    }>;

What each computer of the team remembers of the enemy's bases, and when it last thought

next ​

ts
next: number;

The next request's number

plan ​

ts
plan?: AttackPlan;

The attack the computers agreed on; nothing when there is none

requests ​

ts
requests: TeamRequest[];

The requests on the board

v ​

ts
v: 1;

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