Skip to content

useGameboardActor

useGameboardActor(entity): { actorId: string; blocksMovement: boolean; faction: string | undefined; hostile: boolean; interactive: boolean; kind: GameboardActorKind; metadata: Record<string, GameboardActorMetadataValue>; tags: string[]; team: string | undefined; } | undefined

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

Read actor metadata for one actor entity.

Entity | null | undefined

{ actorId: string; blocksMovement: boolean; faction: string | undefined; hostile: boolean; interactive: boolean; kind: GameboardActorKind; metadata: Record<string, GameboardActorMetadataValue>; tags: string[]; team: string | undefined; }

actorId: string = ''

Stable gameplay actor id.

blocksMovement: boolean = false

Whether this actor blocks movement.

faction: string | undefined

Optional faction identifier.

hostile: boolean = false

Whether this actor is generally hostile.

interactive: boolean = false

Whether this actor should be treated as an interaction target.

kind: GameboardActorKind

Actor role used by collision, targeting, commands, and fixtures.

metadata: Record<string, GameboardActorMetadataValue>

Serializable actor metadata.

tags: string[]

Free-form actor tags.

team: string | undefined

Optional team identifier.


undefined