Skip to content

UnitPlacementOptions

Defined in: packages/declarative-hex-worlds/src/gameboard/plan.ts:612

Options for adding one EXTRA unit part.

at: HexCoordinates

Defined in: packages/declarative-hex-worlds/src/gameboard/plan.ts:614

Tile where the unit part is anchored.


optional compositeId?: string

Defined in: packages/declarative-hex-worlds/src/gameboard/plan.ts:624

Shared composite id for multi-part units.


optional faction?: "blue" | "green" | "red" | "yellow"

Defined in: packages/declarative-hex-worlds/src/gameboard/plan.ts:618

Faction used by colored unit parts.


optional neutral?: boolean

Defined in: packages/declarative-hex-worlds/src/gameboard/plan.ts:622

Force neutral unit asset selection.


part: "banner" | "bow" | "cannon" | "cart" | "cart_merchant" | "catapult" | "helmet" | "horse" | "projectile_arrow" | "shield" | "ship" | "spear" | "sword" | "unit" | "hammer" | "horse_A" | "horse_B" | "horse_C" | "horse_D" | "horse_E" | "horse_F" | "horse_G" | "horse_saddle" | "projectile_cannonball" | "projectile_catapult" | "shovel"

Defined in: packages/declarative-hex-worlds/src/gameboard/plan.ts:616

Unit part asset id.


optional rotationSteps?: number

Defined in: packages/declarative-hex-worlds/src/gameboard/plan.ts:626

Clockwise 60-degree rotation steps.


optional scale?: number

Defined in: packages/declarative-hex-worlds/src/gameboard/plan.ts:628

Uniform render scale.


optional style?: "accent" | "full"

Defined in: packages/declarative-hex-worlds/src/gameboard/plan.ts:620

Colored unit style.