Skip to content

GameboardMovementEventRecord

Defined in: packages/declarative-hex-worlds/src/systems/events.ts:284

Serializable movement event record.

optional actorId?: string

Defined in: packages/declarative-hex-worlds/src/systems/events.ts:288

Actor id when the moved placement is actor-backed.


assetId: string

Defined in: packages/declarative-hex-worlds/src/systems/events.ts:292

Placement asset id.


moved: boolean

Defined in: packages/declarative-hex-worlds/src/systems/events.ts:296

Whether the placement moved during this event.


placementId: string

Defined in: packages/declarative-hex-worlds/src/systems/events.ts:286

Placement id being moved.


profileId: GameboardMovementProfileId

Defined in: packages/declarative-hex-worlds/src/systems/events.ts:294

Movement profile id used for the move.


state: object

Defined in: packages/declarative-hex-worlds/src/systems/events.ts:298

Snapshot of the path state.

cost: number = 0

Total planned path cost.

destinationKey: string = ''

Destination tile key for the current request.

nextIndex: number = 0

Next path index to advance to.

pathKeys: string[]

Planned path tile keys.

reason: string | undefined

Blocked or out-of-range reason.

spentCost: number = 0

Cost spent so far.

status: GameboardMovementStatus

Current movement status.

visited: number = 0

Number of pathfinder nodes visited for the request.


tileKey: string

Defined in: packages/declarative-hex-worlds/src/systems/events.ts:290

Current tile key for the moved placement.