SeededGameboardDensityRuleOptions
Defined in: packages/declarative-hex-worlds/src/rules/rules.ts:67
Overrides for one built-in seeded density preset.
Extends
Section titled “Extends”Omit<GameboardLayoutFillRule,"archetype"|"assetId"|"assets"|"count"|"fill"|"id">
Properties
Section titled “Properties”archetype?
Section titled “archetype?”
optionalarchetype?:GameboardLayoutArchetypeInput
Defined in: packages/declarative-hex-worlds/src/rules/rules.ts:80
Archetype id or inline archetype to use for placement constraints.
archetypes?
Section titled “archetypes?”
optionalarchetypes?:Readonly<Record<string,GameboardLayoutArchetype>>
Defined in: packages/declarative-hex-worlds/src/coordinates/layout.ts:432
Registry used to resolve archetype.
Inherited from
Section titled “Inherited from”GameboardLayoutPlacementOptions.archetypes
assetId?
Section titled “assetId?”
optionalassetId?:string
Defined in: packages/declarative-hex-worlds/src/rules/rules.ts:72
Single asset id to spawn for the preset.
assets?
Section titled “assets?”
optionalassets?: readonlystring[]
Defined in: packages/declarative-hex-worlds/src/rules/rules.ts:74
Asset pool to choose from for the preset.
count?
Section titled “count?”
optionalcount?:number
Defined in: packages/declarative-hex-worlds/src/rules/rules.ts:76
Exact placement count for the preset.
criteria?
Section titled “criteria?”
optionalcriteria?:GameboardLayoutCriteria
Defined in: packages/declarative-hex-worlds/src/coordinates/layout.ts:446
Criteria merged over archetype defaults.
Inherited from
Section titled “Inherited from”GameboardLayoutPlacementOptions.criteria
elevationOffset?
Section titled “elevationOffset?”
optionalelevationOffset?:number
Defined in: packages/declarative-hex-worlds/src/koota/koota.ts:310
Extra vertical offset above the tile elevation.
Inherited from
Section titled “Inherited from”SpawnGameboardPlacementOptions.elevationOffset
optionalfill?:number
Defined in: packages/declarative-hex-worlds/src/rules/rules.ts:78
Fraction of eligible tiles to fill for the preset.
optionalid?:string
Defined in: packages/declarative-hex-worlds/src/rules/rules.ts:70
Explicit fill rule id.
idPrefix?
Section titled “idPrefix?”
optionalidPrefix?:string
Defined in: packages/declarative-hex-worlds/src/coordinates/layout.ts:477
Prefix used when assigning deterministic placement ids.
Inherited from
Section titled “Inherited from”GameboardLayoutFillRule.idPrefix
optionalkind?:GameboardPlacementKind
Defined in: packages/declarative-hex-worlds/src/coordinates/layout.ts:434
Placement kind override.
Inherited from
Section titled “Inherited from”GameboardLayoutPlacementOptions.kind
layer?
Section titled “layer?”
optionallayer?:GameboardPlacementLayer
Defined in: packages/declarative-hex-worlds/src/coordinates/layout.ts:436
Placement layer override.
Inherited from
Section titled “Inherited from”GameboardLayoutPlacementOptions.layer
maxCount?
Section titled “maxCount?”
optionalmaxCount?:number
Defined in: packages/declarative-hex-worlds/src/coordinates/layout.ts:475
Maximum placement count after fill/count calculation.
Inherited from
Section titled “Inherited from”GameboardLayoutFillRule.maxCount
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.
Inherited from
Section titled “Inherited from”SpawnGameboardPlacementOptions.metadata
minCount?
Section titled “minCount?”
optionalminCount?:number
Defined in: packages/declarative-hex-worlds/src/coordinates/layout.ts:473
Minimum placement count after fill/count calculation.
Inherited from
Section titled “Inherited from”GameboardLayoutFillRule.minCount
occupancyGuard?
Section titled “occupancyGuard?”
optionaloccupancyGuard?:GameboardPlacementOccupancyGuard
Defined in: packages/declarative-hex-worlds/src/koota/koota.ts:326
Optional occupancy validation before spawning.
Inherited from
Section titled “Inherited from”SpawnGameboardPlacementOptions.occupancyGuard
onDiagnostics?
Section titled “onDiagnostics?”
optionalonDiagnostics?: (diagnostics) =>void
Defined in: packages/declarative-hex-worlds/src/coordinates/layout.ts:454
Called when the selected site count is less than the requested count
(including zero). Reports the resolved criteria and a rejection
histogram so an empty result is distinguishable from “board is full”.
Never called when selectedCount >= requestedCount. No-op by default —
absent option means zero behavior change.
Parameters
Section titled “Parameters”diagnostics
Section titled “diagnostics”GameboardLayoutPlacementDiagnostics
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”Omit.onDiagnostics
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.
Inherited from
Section titled “Inherited from”SpawnGameboardPlacementOptions.order
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.
Inherited from
Section titled “Inherited from”SpawnGameboardPlacementOptions.positionOffset
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.
Inherited from
Section titled “Inherited from”SpawnGameboardPlacementOptions.requiresExtra
rotationSteps?
Section titled “rotationSteps?”
optionalrotationSteps?:number|"random"
Defined in: packages/declarative-hex-worlds/src/coordinates/layout.ts:444
Rotation steps or deterministic random rotation.
Inherited from
Section titled “Inherited from”Omit.rotationSteps
scale?
Section titled “scale?”
optionalscale?:number
Defined in: packages/declarative-hex-worlds/src/koota/koota.ts:316
Uniform render scale.
Inherited from
Section titled “Inherited from”SpawnGameboardPlacementOptions.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.
Inherited from
Section titled “Inherited from”SpawnGameboardPlacementOptions.stackIndex
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.