@alpaca-software/40kdc-data
    Preparing search index...

    Interface TerrainTemplate

    A reusable terrain piece in the standard catalog: a gameplay area (the 11e terrain-area templates) or a scenery feature (walls, containers, pipes, floor segments). Footprints are authored in natural local inches; the terrain resolver derives each footprint's polygon area centroid and re-centers on it, so a layout piece that instances a template places its centroid via the layout's position. An area template may carry an embedded features list — scenery placed in the area's centroid-local frame — making the template a reusable composition (e.g. a ruin with its walls). Placing such a template places all of its features, transformed by the area's own placement.

    This interface was referenced by 0KdcBundledSchemas's JSON-Schema via the definition "terrain-template".

    interface TerrainTemplate {
        id: string;
        name: string;
        kind: "area" | "feature";
        source?: string;
        footprint: Footprint;
        default_height_inches?: number;
        default_blocking?: boolean;
        ground_accessible?: boolean;
        upper_floor?: { footprint: Footprint; floor?: number };
        default_terrain_area_keywords?: TerrainAreaKeyword[];
        features?: ComposedFeature[];
        game_version: GameVersionReference;
    }
    Index

    Properties

    id: string
    name: string
    kind: "area" | "feature"

    area = a gameplay terrain zone; feature = physical scenery placed on an area.

    source?: string

    Catalog or mission pack the template originates from.

    footprint: Footprint
    default_height_inches?: number

    Default height in inches for pieces instancing this template. Gates Plunging Fire (>= 3").

    default_blocking?: boolean

    Whether the template blocks line of sight / movement by default.

    ground_accessible?: boolean

    Whether models may be placed on the ground footprint. false marks an elevated-only piece (a platform reachable only on its upper_floor, e.g. a gantry/catwalk) or a solid obstacle with no valid placement (e.g. a generator). Meaningful for kind: "feature".

    upper_floor?: { footprint: Footprint; floor?: number }

    An elevated platform carried by this feature (e.g. a ruin's second storey). Its footprint is authored in the SAME local frame as footprint and re-centered on the GROUND footprint's polygon area centroid, so the two floors stay registered when the piece is placed, rotated, or mirrored. Non-resolved metadata: the terrain resolver does not emit it; authoring/visualization tools render it as an overlay. Meaningful for kind: "feature".

    Type Declaration

    • footprint: Footprint
    • Optionalfloor?: number

      Ruin floor this platform occupies (1 = first floor above ground).

    default_terrain_area_keywords?: TerrainAreaKeyword[]

    Terrain-area keywords areas of this template carry by default. Meaningful for kind: "area".

    features?: ComposedFeature[]

    Composed scenery features, in the area's centroid-local frame. Only meaningful for kind: "area".

    game_version: GameVersionReference