From 532c9be36ca03ee13c92ca7d895aaf5b42eeb034 Mon Sep 17 00:00:00 2001 From: Hop311 Date: Wed, 26 Jul 2023 21:37:25 +0100 Subject: Added pops to provinces --- src/openvic/map/Building.hpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/openvic/map/Building.hpp') 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 building_types; -- cgit v1.2.3-56-ga3b1