Skip to content

MissionUnitsData beta ​

Interface of @v12-engine/engine/ai

ts
export interface MissionUnitsData

Which of its units a part takes, as data: those named (named), of a type, a role or a tag, near a place (near, within), at most so many (count, the nearest the part's place first). Its fighters (soldiers and heroes) where none of named, type, role, tag is given

Members ​

count ​

ts
count?: number;

At most so many, the nearest the part's place first

named ​

ts
named?: string[];

Entities the map or the rules named (world.named): those of them that are its own

near ​

ts
near?: MissionPlace;

Near a place

role ​

ts
role?: AiRole;

Only units of this role; the role is inferred or declared for the unit type (RoleTable)

tag ​

ts
tag?: string;

Only units of a type with this tag

type ​

ts
type?: string | string[];

Of a type, or of any of a list

within ​

ts
within?: number;

How near near (the part's reach when left out)