This commit is contained in:
2026-05-22 20:45:10 +02:00
parent ca07cbaf0e
commit 9d20048705
7 changed files with 3 additions and 67 deletions

View File

@@ -1049,30 +1049,6 @@ bool BuildingSystem::deliverScrapToSalvageBay(EntityId bayId)
return true;
}
void BuildingSystem::healBuilding(EntityId id, float amount)
{
for (Building& b : m_buildings)
{
if (b.id == id)
{
b.hp = std::min(b.hp + amount, b.maxHp);
return;
}
}
}
void BuildingSystem::damageBuilding(EntityId id, float amount)
{
for (Building& b : m_buildings)
{
if (b.id == id)
{
b.hp -= amount;
return;
}
}
}
EntityId BuildingSystem::placeImmediate(BuildingType type,
const std::vector<std::string>& surfaceMask,
QPoint anchor, Rotation rotation,
@@ -1133,18 +1109,6 @@ bool BuildingSystem::removeBuilding(EntityId id)
return false;
}
void BuildingSystem::initStationWeapon(EntityId id, const StationWeapon& weapon)
{
for (Building& b : m_buildings)
{
if (b.id == id)
{
b.weapon = weapon;
return;
}
}
}
void BuildingSystem::forEachBuilding(std::function<void(Building&)> fn)
{
for (Building& b : m_buildings)