Skip to content

AiConditionTest beta ​

TypeAlias of @v12-engine/engine/ai

ts
export type AiConditionTest = (ai: Brain, args: Record<string, unknown>) => boolean;

A condition of a game's own or a brain's, for the data form ({ is: id, args }): a map's file names it, the game (GameAi.conditions) or the brain (BrainDef.conditions) gives the code, by an id prefixed as components are (mygame.bridgeDown)