ScriptTickContext
Defined in: logic/ScriptGraphRunner.ts:221
Everything one tick needs that is not the graph or the instance.
Type Parameters
Section titled “Type Parameters”Ctx
Properties
Section titled “Properties”bb:
Blackboard
Defined in: logic/ScriptGraphRunner.ts:223
budget?
Section titled “budget?”
optionalbudget?:number
Defined in: logic/ScriptGraphRunner.ts:228
ctx:
Ctx
Defined in: logic/ScriptGraphRunner.ts:222
dt:
number
Defined in: logic/ScriptGraphRunner.ts:225
onProblem?
Section titled “onProblem?”
optionalonProblem?: (message) =>void
Defined in: logic/ScriptGraphRunner.ts:227
Reported once per distinct message per instance.
Parameters
Section titled “Parameters”message
Section titled “message”string
Returns
Section titled “Returns”void
registry
Section titled “registry”registry:
AiRegistry<Ctx>
Defined in: logic/ScriptGraphRunner.ts:224
resolveGraph?
Section titled “resolveGraph?”
optionalresolveGraph?: (ref) =>CompiledScriptGraph|undefined
Defined in: logic/ScriptGraphRunner.ts:239
The graph a graph.call names, resolved when the call runs rather than
held on the compiled caller: a graph belongs to the realm that loaded it,
and reloading one must not oblige every graph calling it to rebuild.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”CompiledScriptGraph | undefined
world?
Section titled “world?”
optionalworld?:World
Defined in: logic/ScriptGraphRunner.ts:233
The world entity.spawn spawns into. The runner is generic over its
context so the core stays wasm-free; whoever knows the world hands it in.