Skip to content

useGameboardCommandActions

useGameboardCommandActions(): object

Defined in: src/react/react.ts:448

Bind higher-level command actions shared by UI, AI, and test flows.

execute: (commandOrTarget, options) => GameboardInteractionCommandExecution

Execute a command with optional host-game handlers.

GameboardInteractionCommandInput

GameboardInteractionCommandExecutionOptions = {}

GameboardInteractionCommandExecution

plan: (target, options) => GameboardInteractionCommand

Plan a command from a renderer or gameplay target.

GameboardInteractionTargetInput

GameboardInteractionCommandOptions = {}

GameboardInteractionCommand

preview: (commandOrTarget, options) => GameboardInteractionCommandPreview

Preview a command without mutating state.

GameboardInteractionCommandInput

GameboardInteractionCommandPreviewOptions = {}

GameboardInteractionCommandPreview

targetCommand: (options) => GameboardActorTargetCommandPlan

Select an actor target and plan a command against it.

GameboardActorTargetCommandOptions

GameboardActorTargetCommandPlan