Skip to content

ModuleKey beta ​

Interface of @v12-engine/engine/ai

ts
export interface ModuleKey<M extends AiModule>

What finds a module of a brain with its shape (ai.module(key)): its id, typed. The kit's are MELEE_ARMY and LANES; a game makes its own with moduleKey

Members ​

id ​

ts
readonly id: string;

The id the module is found by: a module of that id is the one this key finds

shape ​

ts
readonly shape?: M;

The shape the module has: never set, for the type alone