rename EntityId to BuildingId

This commit is contained in:
2026-05-23 07:53:56 +02:00
parent dc4ebd5f2d
commit b57299fd2a
28 changed files with 273 additions and 274 deletions

View File

@@ -9,7 +9,7 @@
#include <QSize>
#include "BuildingType.h"
#include "EntityId.h"
#include "BuildingId.h"
#include "entt/entity/entity.hpp"
#include "Item.h"
@@ -45,7 +45,7 @@ struct Production
// Occupies tiles but does not produce.
struct ConstructionSite
{
EntityId id = kInvalidEntityId;
BuildingId id = kInvalidBuildingId;
QPoint anchor; // top-left of body bounding box
QSize footprint;
std::vector<QPoint> bodyCells; // absolute world tile coordinates
@@ -59,7 +59,7 @@ struct ConstructionSite
// A fully constructed, operational building.
struct Building
{
EntityId id = kInvalidEntityId;
BuildingId id = kInvalidBuildingId;
QPoint anchor; // top-left of body bounding box
QSize footprint;
Rotation rotation = Rotation::East;