Clash Blueprint Engine API
    Preparing search index...

    Interface BuildingCatalog

    Port for resolving definitions. The domain depends on this interface, never on a concrete data source, so the same aggregate works with a JSON pack, an in-memory test fixture, or a remote catalog.

    interface BuildingCatalog {
        all(): readonly BuildingDefinition[];
        get(definitionId: string): BuildingDefinition | undefined;
        has(definitionId: string): boolean;
    }

    Implemented by

    Index