Skip to content

GameboardLayoutFillRuleAnalysis

Defined in: packages/declarative-hex-worlds/src/coordinates/layout.ts:493

Analysis for one layout fill rule.

optional archetypeId?: GameboardLayoutArchetypeId

Defined in: packages/declarative-hex-worlds/src/coordinates/layout.ts:499

Resolved archetype id.


assetIds: readonly string[]

Defined in: packages/declarative-hex-worlds/src/coordinates/layout.ts:505

Configured asset ids.


candidateCount: number

Defined in: packages/declarative-hex-worlds/src/coordinates/layout.ts:509

Candidate site count before target count limits.


errors: readonly string[]

Defined in: packages/declarative-hex-worlds/src/coordinates/layout.ts:525

Fatal diagnostics for the rule.


id: string

Defined in: packages/declarative-hex-worlds/src/coordinates/layout.ts:495

Stable rule id.


optional kind?: GameboardPlacementKind

Defined in: packages/declarative-hex-worlds/src/coordinates/layout.ts:501

Resolved placement kind.


optional layer?: GameboardPlacementLayer

Defined in: packages/declarative-hex-worlds/src/coordinates/layout.ts:503

Resolved placement layer.


rejectedSiteCount: number

Defined in: packages/declarative-hex-worlds/src/coordinates/layout.ts:511

Rejected site count.


rejectionCounts: Readonly<Partial<Record<GameboardLayoutSiteRejectionCode, number>>>

Defined in: packages/declarative-hex-worlds/src/coordinates/layout.ts:513

Rejection counts grouped by code.


requestedCount: number

Defined in: packages/declarative-hex-worlds/src/coordinates/layout.ts:515

Count requested by count, fill, and min/max settings.


ruleIndex: number

Defined in: packages/declarative-hex-worlds/src/coordinates/layout.ts:497

Rule index in the fill options.


selectedAssetIds: readonly string[]

Defined in: packages/declarative-hex-worlds/src/coordinates/layout.ts:507

Asset ids selected for generated placements.


selectedCount: number

Defined in: packages/declarative-hex-worlds/src/coordinates/layout.ts:519

Number of placements selected by the rule.


selectedTileKeys: readonly string[]

Defined in: packages/declarative-hex-worlds/src/coordinates/layout.ts:521

Tile keys selected by the rule.


targetCount: number

Defined in: packages/declarative-hex-worlds/src/coordinates/layout.ts:517

Final target count after candidate limits and diagnostics.


warnings: readonly string[]

Defined in: packages/declarative-hex-worlds/src/coordinates/layout.ts:523

Non-fatal diagnostics for the rule.