Skip to content

DefenceReport beta ​

Interface of @v12-engine/engine/ai

ts
export interface DefenceReport

The defence as the report shows it (AiReport.defence): the raids on now with what answers each, every base's raids so far, the towers it wants

Members ​

bases ​

ts
bases: {
        at: [number, number];
        raids: number;
        last: number;
    }[];

The bases raided, each with where it is, how many raids it had and the tick of the last

raids ​

ts
raids: {
        at: [number, number];
        intruders: number[];
        strength: number;
        squad?: string;
        defenders: number;
        since: number;
        count: number;
    }[];

The raids on now, each with where it is, the enemy units in it, their strength, the squad that answers it and how many defend, since when and how many so far

towers ​

ts
towers: {
        at: [number, number];
        want: string;
        status: string;
    }[];

The towers it wants, each with where, the type wanted and how far the want is along