Clash Blueprint Engine API
    Preparing search index...

    Interface BuildingDefinition

    The immutable, data-driven description of a building type (a Cannon, an Air Defense…). Instances (./building.ts) reference a definition by id. Definitions come from JSON in data/ — none of this is hardcoded, so adding a building is a data change, not a code change.

    interface BuildingDefinition {
        attackRange?: number;
        category: string;
        damagePerSecond?: number;
        damageType?: "single" | "splash" | "none";
        height: number;
        hitbox?: readonly (readonly [number, number])[];
        hitpoints?: number;
        id: string;
        minTier: number;
        name: string;
        targets?: readonly ("ground" | "air")[];
        width: number;
    }
    Index
    attackRange?: number
    category: string
    damagePerSecond?: number

    Damage per second this building deals to troops (defenses).

    damageType?: "single" | "splash" | "none"
    height: number

    Unrotated footprint height in tiles.

    hitbox?: readonly (readonly [number, number])[]

    Optional explicit occupied cells, relative to the top-left of the bounding box. When omitted the footprint is the full width × height rectangle. Enables non-rectangular hitboxes later without a model change.

    hitpoints?: number

    Structure hit points. Simulation falls back to a category default if unset.

    id: string
    minTier: number

    Minimum progression tier at which this building becomes available.

    name: string
    targets?: readonly ("ground" | "air")[]
    width: number

    Unrotated footprint width in tiles.