SpawnGameboardPlacementOptions
Defined in: packages/declarative-hex-worlds/src/koota/koota.ts:296
Options for spawning a runtime placement into an existing gameboard world.
Extended by
Section titled “Extended by”Properties
Section titled “Properties”assetId
Section titled “assetId”assetId:
string
Defined in: packages/declarative-hex-worlds/src/koota/koota.ts:302
Manifest or external registry asset id to render.
at:
string|HexCoordinates
Defined in: packages/declarative-hex-worlds/src/koota/koota.ts:300
Origin tile or tile key where the placement should spawn.
elevationOffset?
Section titled “elevationOffset?”
optionalelevationOffset?:number
Defined in: packages/declarative-hex-worlds/src/koota/koota.ts:310
Extra vertical offset above the tile elevation.
optionalid?:string
Defined in: packages/declarative-hex-worlds/src/koota/koota.ts:298
Explicit placement id. Defaults to a deterministic runtime id.
kind:
GameboardPlacementKind
Defined in: packages/declarative-hex-worlds/src/koota/koota.ts:304
Gameplay category for rules, selectors, and rendering.
layer?
Section titled “layer?”
optionallayer?:GameboardPlacementLayer
Defined in: packages/declarative-hex-worlds/src/koota/koota.ts:306
Render and occupancy layer. Defaults from kind.
metadata?
Section titled “metadata?”
optionalmetadata?:Readonly<Record<string,string|number|boolean|null>>
Defined in: packages/declarative-hex-worlds/src/koota/koota.ts:324
Serializable placement metadata for rules, ECS interop, and render hints.
occupancyGuard?
Section titled “occupancyGuard?”
optionaloccupancyGuard?:GameboardPlacementOccupancyGuard
Defined in: packages/declarative-hex-worlds/src/koota/koota.ts:326
Optional occupancy validation before spawning.
order?
Section titled “order?”
optionalorder?:number
Defined in: packages/declarative-hex-worlds/src/koota/koota.ts:318
Stable sort order used by renderers and snapshots.
positionOffset?
Section titled “positionOffset?”
optionalpositionOffset?:GameboardPlacementPositionOffset
Defined in: packages/declarative-hex-worlds/src/koota/koota.ts:312
Local world-space offset after tile/elevation anchoring.
requiresExtra?
Section titled “requiresExtra?”
optionalrequiresExtra?:boolean
Defined in: packages/declarative-hex-worlds/src/koota/koota.ts:322
Whether the placement depends on local-only EXTRA assets.
rotationSteps?
Section titled “rotationSteps?”
optionalrotationSteps?:number
Defined in: packages/declarative-hex-worlds/src/koota/koota.ts:314
Clockwise 60-degree rotation steps.
scale?
Section titled “scale?”
optionalscale?:number
Defined in: packages/declarative-hex-worlds/src/koota/koota.ts:316
Uniform render scale.
stackIndex?
Section titled “stackIndex?”
optionalstackIndex?:number
Defined in: packages/declarative-hex-worlds/src/koota/koota.ts:320
Optional stack index for layered terrain and vertical props.
textureSet?
Section titled “textureSet?”
optionaltextureSet?:"default"|"fall"|"summer"|"winter"
Defined in: packages/declarative-hex-worlds/src/koota/koota.ts:308
Texture set override. Defaults to the origin tile texture set.