Skip to content

PlacementOccupancySnapshot

Defined in: src/koota/koota.ts:186

Serializable occupancy record joined from a placement and an occupied tile.

blocksMovement: boolean

Defined in: src/koota/koota.ts:198

Whether this occupancy record blocks movement.


coordinates: HexCoordinates

Defined in: src/koota/koota.ts:190

Axial coordinates for the occupied tile.


footprintIndex: number

Defined in: src/koota/koota.ts:196

Zero-based index within the placement footprint.


occupancyGroup: string

Defined in: src/koota/koota.ts:200

Occupancy group used to allow compatible colocated placements.


originTileKey: string

Defined in: src/koota/koota.ts:194

Origin tile key for the placement.


placement: object

Defined in: src/koota/koota.ts:192

Placement occupying the tile.

assetId: string = ''

Manifest or external registry asset id.

coordinates: HexCoordinates

Axial coordinates of the origin tile.

elevation: number = 0

Base tile elevation where the placement was spawned.

elevationOffset: number = 0

Extra vertical offset above the tile elevation.

id: string = ''

Stable placement id.

kind: GameboardPlacementKind

Gameplay category for rules, selectors, and rendering.

layer: GameboardPlacementLayer

Render and occupancy layer.

metadata: Record<string, string | number | boolean | null>

Serializable placement metadata for rules, ECS interop, and render hints.

order: number = 0

Stable sort order used by renderers and snapshots.

position: WorldPosition

World-space placement anchor after elevation and local offsets.

requiresExtra: boolean = false

Whether the placement depends on local-only EXTRA assets.

rotationRadians: number = 0

Rotation in radians derived from rotationSteps.

rotationSteps: number = 0

Clockwise 60-degree rotation steps.

scale: number = 1

Uniform render scale.

stackIndex: number | undefined

Optional stack index for layered terrain and vertical props.

textureSet: "default" | "fall" | "summer" | "winter"

KayKit texture set applied to this placement.

tileKey: string = ''

Origin tile key in q,r form.


tileKey: string

Defined in: src/koota/koota.ts:188

Tile key for the occupied tile.