Skip to content

BuildPlanOptions beta ​

Interface of @v12-engine/engine/ai

ts
export interface BuildPlanOptions

How the build plan goes about it (BrainDef.plans.build, the build() module; the data of it in AiOptions)

Members ​

placement ​

ts
placement?: PlacementTable;

How each type's spot is chosen, by type id or by role: a name or a function. What a type declares (UnitTypeDef.ai.placement) goes over it

rebuild ​

ts
rebuild?: boolean;

Whether a building lost is built again, for standing wants that do not say: yes when left out

repair ​

ts
repair?: boolean;

Whether a worker is sent to mend a damaged building when no enemy reaches it: yes when left out

siteTimeout ​

ts
siteTimeout?: number;

Seconds without a spot before a want that does not stand is given up: 60 when left out

wants ​

ts
wants?: Want[];

Standing wants: what the brain always has, built anew when lost

within ​

ts
within?: number;

How far from home a building goes at the most, where a want does not say: 22 when left out