Skip to content

GameboardScenarioSimulationStepResult

Defined in: packages/declarative-hex-worlds/src/simulation/script-types.ts:730

Runtime result for one executed simulation step.

The full shape is defined here (alongside the step types) so authored scripts and runtime results share a single source of truth.

action: "command" | "actor-target-command" | "inspect-actor-targets" | "run-systems" | "remove-actor" | "remove-placement" | "spawn-actor" | "spawn-placement" | "update-actor" | "update-placement"

Defined in: packages/declarative-hex-worlds/src/simulation/script-types.ts:738

Step action discriminator.


optional actorTargets?: GameboardScenarioSimulationActorTargetsRecord

Defined in: packages/declarative-hex-worlds/src/simulation/script-types.ts:742

Actor-target report for target-inspection steps.


optional dispatch?: DispatchGameboardInteractionCommandResult

Defined in: packages/declarative-hex-worlds/src/simulation/script-types.ts:740

Command dispatch result for command steps.


eventRecords: readonly GameboardSystemEventRecord[]

Defined in: packages/declarative-hex-worlds/src/simulation/script-types.ts:748

Serializable event records emitted by the step.


events: readonly GameboardSystemEvent[]

Defined in: packages/declarative-hex-worlds/src/simulation/script-types.ts:746

In-memory events emitted by the step.


optional id?: string

Defined in: packages/declarative-hex-worlds/src/simulation/script-types.ts:734

Authored step id.


index: number

Defined in: packages/declarative-hex-worlds/src/simulation/script-types.ts:732

Step index.


optional label?: string

Defined in: packages/declarative-hex-worlds/src/simulation/script-types.ts:736

Authored step label.


mutations: readonly GameboardScenarioSimulationMutationRecord[]

Defined in: packages/declarative-hex-worlds/src/simulation/script-types.ts:750

Mutations directly performed by this step.


optional systems?: RunGameboardSystemsResult

Defined in: packages/declarative-hex-worlds/src/simulation/script-types.ts:744

System tick result for run-systems or post-command systems.