Clash Blueprint Engine API
    Preparing search index...

    Interface AnalysisContext

    Everything the metrics read, precomputed once. Metrics are pure functions of this context — no re-scanning the village per metric.

    interface AnalysisContext {
        buildings: readonly AnalyzedBuilding[];
        catalog: BuildingCatalog;
        center: Vec2;
        compartments: CompartmentAnalysis;
        core: AnalyzedBuilding | undefined;
        defenses: readonly DefenseUnit[];
        grid: Grid;
        storages: readonly AnalyzedBuilding[];
        village: Village;
    }
    Index
    buildings: readonly AnalyzedBuilding[]
    center: Vec2
    compartments: CompartmentAnalysis
    core: AnalyzedBuilding | undefined

    The core/HQ building (designated by the game's coreCategory), if present.

    defenses: readonly DefenseUnit[]
    grid: Grid
    storages: readonly AnalyzedBuilding[]
    village: Village