fix belts were not drawn

This commit is contained in:
2026-04-20 21:18:14 +02:00
parent df5a10d81d
commit 46188bd9ca
3 changed files with 38 additions and 0 deletions

View File

@@ -55,10 +55,18 @@ public:
void tickBeltPush();
// -- Queries -------------------------------------------------------------
struct BeltTileInfo
{
EntityId id;
QPoint tile;
BuildingType type; // Belt or Splitter
};
const Building* findBuilding(EntityId id) const;
const ConstructionSite* findSite(EntityId id) const;
std::vector<Building> allBuildings() const;
std::vector<ConstructionSite> allSites() const;
std::vector<BeltTileInfo> allBeltTiles() const;
bool isTileOccupied(QPoint tile) const;
// Find nearest operational building of the given type; nullptr if none.