Skip to content

MissionPartOptions beta ​

Interface of @v12-engine/engine/ai

ts
export interface MissionPartOptions

What every part of a mission takes

Members ​

id ​

ts
id?: string;

Its id: the module's, the goal's and the squad's, what the report and the log name it by. mission.<part>:<place> when left out (mission.hold:camp); give one where two parts of a kind share a place

refill ​

ts
refill?: boolean;

Whether units that come later and fit units are taken too: no when left out (waveFrom always takes what comes)

units ​

ts
units?: MissionUnits;

Which of its units it takes, once, as it is first picked: those at its place when left out (its fighters for fleeWhen)

weight ​

ts
weight?: number;

What it is worth against the brain's other goals: 1 when left out (10 for fleeWhen)

when ​

ts
when?: AiCondition;

Only while this holds: the part lets go of its units while it does not (a condition, as data or a function)