Clash Blueprint Engine API
    Preparing search index...

    Class TileOccupancyIndex

    Tile-occupancy index: maps each occupied tile to the id of its occupant.

    This is the engine's performance backbone. Placement and overlap checks cost O(footprint) instead of O(objects), so a 1000-building village stays fast. Region queries (for viewport culling / marquee selection) iterate only the queried tiles.

    Index
    • Are all cells free, ignoring any occupied by ignoreId? Passing the id being moved lets a building "overlap itself" during a move check.

      Parameters

      • cells: Iterable<GridVec>
      • OptionalignoreId: string

      Returns boolean