Skip to content

FightData beta ​

TypeAlias of @v12-engine/engine/ai

ts
export type FightData = {
    at?: Vec2;
    target?: number;
    avoid?: 'army' | false;
    via?: Vec2;
};

What a task that fights somewhere is given (attack, harass, creep): a place, or a target (an entity, as it goes), a way round their army (avoid: 'army') or by a place (via)