diff options
author | Hop311 <hop3114@gmail.com> | 2023-07-26 22:37:25 +0200 |
---|---|---|
committer | Hop311 <hop3114@gmail.com> | 2023-07-26 22:37:25 +0200 |
commit | 532c9be36ca03ee13c92ca7d895aaf5b42eeb034 (patch) | |
tree | a91587787bf6742168279ac41f77b9ebabe0dffe /src/openvic/map/Building.hpp | |
parent | 0422f9fbb06e911a7cf6da11045b47cdda0d2d06 (diff) |
Added pops to provinces
Diffstat (limited to 'src/openvic/map/Building.hpp')
-rw-r--r-- | src/openvic/map/Building.hpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/openvic/map/Building.hpp b/src/openvic/map/Building.hpp index 98c3991..c4f8950 100644 --- a/src/openvic/map/Building.hpp +++ b/src/openvic/map/Building.hpp @@ -6,7 +6,8 @@ #include "../Types.hpp" namespace OpenVic { - struct Province; + + struct BuildingManager; struct BuildingType; /* REQUIREMENTS: @@ -15,7 +16,7 @@ namespace OpenVic { * MAP-13, MAP-78, MAP-79 */ struct Building : HasIdentifier { - friend struct Province; + friend struct BuildingManager; using level_t = int8_t; @@ -52,8 +53,6 @@ namespace OpenVic { void tick(Date const& today); }; - struct BuildingManager; - struct BuildingType : HasIdentifier { friend struct BuildingManager; @@ -70,6 +69,8 @@ namespace OpenVic { Timespan get_build_time() const; }; + struct Province; + struct BuildingManager { private: IdentifierRegistry<BuildingType> building_types; |