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.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new SpeculationInstance(
world,resources,events):SpeculationInstance
Defined in: ecs/speculation.ts:236
Parameters
Section titled “Parameters”resources
Section titled “resources”ResourceStorage
events
Section titled “events”EventRegistry | null
Returns
Section titled “Returns”SpeculationInstance
Methods
Section titled “Methods”replay()
Section titled “replay()”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.
Parameters
Section titled “Parameters”(commands) => SpeculationOutcome
Returns
Section titled “Returns”run(
body):SpeculationOutcome
Defined in: ecs/speculation.ts:242
Parameters
Section titled “Parameters”(commands) => SpeculationOutcome