AiContext
Defined in: ai/fsm/AiContext.ts:21
Properties
Section titled “Properties”blackboard
Section titled “blackboard”
readonlyblackboard:Blackboard
Defined in: ai/fsm/AiContext.ts:27
This agent’s blackboard — the AI data plane.
commands
Section titled “commands”
readonlycommands:CommandsInstance
Defined in: ai/fsm/AiContext.ts:31
Deferred structural ops (spawn / despawn), safe mid-iteration.
readonlydt:number
Defined in: ai/fsm/AiContext.ts:25
Frame delta in seconds.
entity
Section titled “entity”
readonlyentity:number
Defined in: ai/fsm/AiContext.ts:23
The agent entity this action/condition runs for.
readonlyworld:World
Defined in: ai/fsm/AiContext.ts:29
The world, for cross-entity access.
Methods
Section titled “Methods”get<
C>(component):ComponentData<C>
Defined in: ai/fsm/AiContext.ts:33
Read another component on THIS entity.
Type Parameters
Section titled “Type Parameters”C extends AnyComponentDef
Parameters
Section titled “Parameters”component
Section titled “component”C
Returns
Section titled “Returns”has(
component):boolean
Defined in: ai/fsm/AiContext.ts:37
Whether THIS entity has component.
Parameters
Section titled “Parameters”component
Section titled “component”Returns
Section titled “Returns”boolean
set<
C>(component,data):void
Defined in: ai/fsm/AiContext.ts:35
Write another component on THIS entity.
Type Parameters
Section titled “Type Parameters”C extends AnyComponentDef
Parameters
Section titled “Parameters”component
Section titled “component”C
Returns
Section titled “Returns”void