Skip to content

ElevationRampOptions

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

Options for adding a sloped grass ramp between adjacent elevation levels.

at: HexCoordinates

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

Lower tile where the visible ramp is anchored.


optional direction?: ElevationRampDirection

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

Visual ramp direction. Defaults to up.


optional elevationOffset?: number

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

Fractional elevation offset above the tile surface.


optional facing?: HexEdgeIndex

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

Edge the ramp points toward; also used as the default rotation.


optional fromElevation?: number

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

Elevation on the anchor tile. Defaults to the tile elevation.


optional rotationSteps?: number

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

Clockwise 60-degree rotation steps. Overrides facing when provided.


optional scale?: number

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

Uniform render scale.


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

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

Texture set to apply to the anchor tile before placing the ramp.


optional toElevation?: number

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

Elevation reached by the ramp. Defaults to one level above or below fromElevation.