Skip to content

inferRoles beta ​

Function of @v12-engine/engine/ai

ts
export declare function inferRoles(registry: Registry): RoleTable;

Infers what every unit type of the game is for, from its definition: the rules, written down once, each with its reason (RoleEntry.why). What a game declares (UnitTypeDef.ai.role) is not looked at here: findRoles puts it over what is inferred