WorldRuntime constructor

WorldRuntime(
  1. WorldManifest manifest, {
  2. WorldBinding binding = WorldBinding.world,
  3. int? seedOverride,
})

Create the runtime for manifest under binding.

seedOverride re-seeds the run (deterministic replay: the run receipt records the seed; replay re-executes with it).

Implementation

WorldRuntime(
  this.manifest, {
  this.binding = WorldBinding.world,
  int? seedOverride,
}) : clock = VirtualClock(seedOverride ?? manifest.seed),
     _latency = LatencyModel(seed: (seedOverride ?? manifest.seed)),
     _authAdapter = _authAdapterFor(manifest);