hex-world
    Preparing search index...

    Interface TerrainDefinition

    Runtime terrain definition consumed by ChunkManager and all geometry builders. Build via resolveTerrainDefinitions(descriptors).

    interface TerrainDefinition {
        index: number;
        id: string;
        name: string;
        color: Color;
        roadColor: [number, number, number];
        liquidType: string | undefined;
        isWater: boolean;
        texture: TerrainTextureDescriptor;
        roadCost: number;
    }
    Index

    Properties

    index: number
    id: string
    name: string
    color: Color

    Resolved Three.js Color for vertex blending.

    roadColor: [number, number, number]

    Road color as linear RGB 0–1.

    liquidType: string | undefined

    ID of the liquid type this terrain belongs to, or undefined for solid terrain. Matches a LiquidTypeDescriptor.id.

    isWater: boolean

    True if this type belongs to any liquid type (convenience alias for !!liquidType).

    Texture descriptor, carried through for buildTerrainTextureArray.

    roadCost: number

    Pathfinding cost multiplier for road traversal. Always present; defaults to 1.0.