跳转到内容

ScriptTickContext

此内容尚不支持你的语言。

Defined in: logic/ScriptGraphRunner.ts:221

Everything one tick needs that is not the graph or the instance.

Ctx

bb: Blackboard

Defined in: logic/ScriptGraphRunner.ts:223


optional budget?: number

Defined in: logic/ScriptGraphRunner.ts:228


ctx: Ctx

Defined in: logic/ScriptGraphRunner.ts:222


dt: number

Defined in: logic/ScriptGraphRunner.ts:225


optional onProblem?: (message) => void

Defined in: logic/ScriptGraphRunner.ts:227

Reported once per distinct message per instance.

string

void


registry: AiRegistry<Ctx>

Defined in: logic/ScriptGraphRunner.ts:224


optional resolveGraph?: (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.

string

CompiledScriptGraph | undefined


optional world?: 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.