Skip to content

Hold beta ​

Interface of @v12-engine/engine/ai

ts
export interface Hold

What a goal holds while it runs: its units (ids, of the player's), its money, when it was picked and until when it is committed. Plain data, kept in the brain's memory

Members ​

kept ​

ts
kept?: true;

For a rule's or a module's hold: kept until let go of (release), whatever until says. A squad of one's own holds so

money ​

ts
money?: Cost;

The money it holds (GoalClaims.money)

score ​

ts
score: number;

What it scored when picked

since ​

ts
since: number;

The tick it was picked at

units ​

ts
units: number[];

The units it holds, by id, in the picture's order

until ​

ts
until: number;

The tick its commitment ends at: for a rule's or a module's hold (take with by), the tick it lets go at