switch to ECS architecture

This commit is contained in:
2026-05-22 20:31:39 +02:00
parent c18c4e4804
commit ca07cbaf0e
34 changed files with 1943 additions and 2074 deletions

View File

@@ -10,6 +10,8 @@
#include "BuildingType.h"
#include "EntityId.h"
#include "entt/entity/entity.hpp"
#include "Item.h"
#include "ItemType.h"
#include "Port.h"
@@ -62,7 +64,7 @@ struct StationWeapon
float range;
float fireRateHz;
float cooldownTicks;
std::optional<EntityId> currentTarget;
std::optional<entt::entity> currentTarget;
};
// A fully constructed, operational building.