跳转到内容

SpeculationInstance

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

Defined in: ecs/speculation.ts:231

The scope a system was handed. run is one step: the body mutates, then says whether it happened.

new SpeculationInstance(world, resources, events): SpeculationInstance

Defined in: ecs/speculation.ts:236

World

ResourceStorage

EventRegistry | null

SpeculationInstance

replay(body): ReplayReport

Defined in: ecs/speculation.ts:248

Ask whether the step is a function of the world alone. Takes both runs back, so asking costs the world nothing.

(commands) => SpeculationOutcome

ReplayReport


run(body): SpeculationOutcome

Defined in: ecs/speculation.ts:242

(commands) => SpeculationOutcome

SpeculationOutcome