Skip to content

useGameboardPatrolActions

useGameboardPatrolActions(): object

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

Bind patrol actions for attaching patrol agents and route state.

advance: (placement, options) => GameboardPatrolAdvanceResult

Advance one patrol agent.

string | Entity

AdvanceGameboardPatrolOptions = {}

GameboardPatrolAdvanceResult

clear: (placement) => Entity

Remove patrol traits from a placement.

string | Entity

Entity

read: () => GameboardPatrolSnapshot[]

Read all patrol snapshots.

GameboardPatrolSnapshot[]

run: (options) => GameboardPatrolAdvanceResult[]

Advance every patrol agent in the world.

AdvanceGameboardPatrolOptions = {}

GameboardPatrolAdvanceResult[]

set: (placement, options) => Entity

Attach or replace a patrol agent.

string | Entity

SetGameboardPatrolAgentOptions

Entity