Skip to content

GameboardActorSelection

Defined in: packages/declarative-hex-worlds/src/actors/actors.ts:418

Aggregated actor selection result for gameplay systems and UIs.

actorIds: readonly string[]

Defined in: packages/declarative-hex-worlds/src/actors/actors.ts:426

Matching actor ids.


actors: readonly GameboardActorSnapshot[]

Defined in: packages/declarative-hex-worlds/src/actors/actors.ts:420

Matching actor snapshots.


byTileKey: Readonly<Record<string, readonly GameboardActorSnapshot[]>>

Defined in: packages/declarative-hex-worlds/src/actors/actors.ts:432

Matching actors grouped by tile key.


optional center?: HexCoordinates

Defined in: packages/declarative-hex-worlds/src/actors/actors.ts:444

Resolved center coordinates used for radius and distance.


optional centerKey?: string

Defined in: packages/declarative-hex-worlds/src/actors/actors.ts:446

Resolved center tile key.


count: number

Defined in: packages/declarative-hex-worlds/src/actors/actors.ts:424

Number of matching actors.


hostileActors: readonly GameboardActorSnapshot[]

Defined in: packages/declarative-hex-worlds/src/actors/actors.ts:436

Matching actors hostile to the source or generally hostile.


interactiveActors: readonly GameboardActorSnapshot[]

Defined in: packages/declarative-hex-worlds/src/actors/actors.ts:438

Matching interactive actors.


placementIds: readonly string[]

Defined in: packages/declarative-hex-worlds/src/actors/actors.ts:428

Matching placement ids.


propActors: readonly GameboardActorSnapshot[]

Defined in: packages/declarative-hex-worlds/src/actors/actors.ts:440

Matching prop actors.


optional radius?: number

Defined in: packages/declarative-hex-worlds/src/actors/actors.ts:448

Normalized radius used for filtering.


records: readonly GameboardActorSelectionRecord[]

Defined in: packages/declarative-hex-worlds/src/actors/actors.ts:422

Serializable records for matching actors.


recordsByTileKey: Readonly<Record<string, readonly GameboardActorSelectionRecord[]>>

Defined in: packages/declarative-hex-worlds/src/actors/actors.ts:434

Matching records grouped by tile key.


optional source?: GameboardActorSnapshot

Defined in: packages/declarative-hex-worlds/src/actors/actors.ts:442

Source actor used for the selection.


tileKeys: readonly string[]

Defined in: packages/declarative-hex-worlds/src/actors/actors.ts:430

Unique tile keys occupied by matching actors.