RuleBuilder beta
Interface of @v12-engine/engine/ai
ts
export interface RuleBuilderA rule being written: when(...), then any of once, every, priority, named, then do
Members
do
ts
do(action: AiAction): AiRule;What it does: the rule
every
ts
every(seconds: number): RuleBuilder;Fires again while the condition holds, at most every so many seconds
named
ts
named(id: string): RuleBuilder;Its name, for the memory, the report and the log
once
ts
once(): RuleBuilder;Fires the first time only, ever
priority
ts
priority(n: number): RuleBuilder;Checked before rules of less