Skip to content

GameboardInteractionHandlerEffect

GameboardInteractionHandlerEffect = { actorId: string; placementId?: string; reason?: string; removed: boolean; type: "actor-removed"; } | { placementId: string; reason?: string; removed: boolean; type: "placement-removed"; } | { actorId: string; placementId?: string; reason?: string; type: "actor-updated"; updated: boolean; } | { placementId: string; reason?: string; type: "placement-updated"; updated: boolean; }

Defined in: src/commands/commands.ts:69

Serializable side effect emitted by a command handler.

{ actorId: string; placementId?: string; reason?: string; removed: boolean; type: "actor-removed"; }

actorId: string

Actor id that the handler attempted to remove.

optional placementId?: string

Placement id associated with the removed actor.

optional reason?: string

Optional failure or diagnostic reason.

removed: boolean

Whether the actor placement was removed.

type: "actor-removed"

Effect discriminator for removing an actor placement.


{ placementId: string; reason?: string; removed: boolean; type: "placement-removed"; }

placementId: string

Placement id that the handler attempted to remove.

optional reason?: string

Optional failure or diagnostic reason.

removed: boolean

Whether the placement was removed.

type: "placement-removed"

Effect discriminator for removing a non-actor placement.


{ actorId: string; placementId?: string; reason?: string; type: "actor-updated"; updated: boolean; }

actorId: string

Actor id that the handler attempted to update.

optional placementId?: string

Placement id associated with the actor.

optional reason?: string

Optional failure or diagnostic reason.

type: "actor-updated"

Effect discriminator for actor metadata updates.

updated: boolean

Whether actor state was updated.


{ placementId: string; reason?: string; type: "placement-updated"; updated: boolean; }

placementId: string

Placement id that the handler attempted to update.

optional reason?: string

Optional failure or diagnostic reason.

type: "placement-updated"

Effect discriminator for placement metadata updates.

updated: boolean

Whether placement state was updated.