Skip to content

defineModule ​

Function of @v12-engine/engine/ai

ts
export declare function defineModule(def: {
    id: string;
    make: (ai: Brain) => AiModule;
}): AiModuleDef;

A module made for each brain by a function of it, with its id known before it is made: what a brain's without leaves out by name (meleeBrain.with({ without: ['scouting'] })). The kit's modules are all defined so