Skip to content

useGameboardPatrolState

useGameboardPatrolState(entity): { lastPathKeys: string[]; reason: string | undefined; status: GameboardPatrolStatus; targetKey: string; } | undefined

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

Read live patrol route progress for one actor entity.

Entity | null | undefined

{ lastPathKeys: string[]; reason: string | undefined; status: GameboardPatrolStatus; targetKey: string; }

lastPathKeys: string[]

Last requested movement path tile keys.

reason: string | undefined

Blocked or paused reason.

status: GameboardPatrolStatus

Current patrol status.

targetKey: string = ''

Current target waypoint tile key.


undefined