From 2d76e0766f0d65ffd8c9eb19eaec705445f91af0 Mon Sep 17 00:00:00 2001 From: zaaarf Date: Fri, 1 Dec 2023 20:03:03 +0100 Subject: feat: replaced REF_GETTERS with PROPERTY_REF, added PROPERTY_CUSTOM_PREFIX --- src/openvic-simulation/pop/Pop.hpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/openvic-simulation/pop/Pop.hpp') diff --git a/src/openvic-simulation/pop/Pop.hpp b/src/openvic-simulation/pop/Pop.hpp index ff4ff5f..798e78e 100644 --- a/src/openvic-simulation/pop/Pop.hpp +++ b/src/openvic-simulation/pop/Pop.hpp @@ -80,15 +80,12 @@ namespace OpenVic { private: IdentifierRegistry pop_types; - CultureManager culture_manager; - ReligionManager religion_manager; + CultureManager PROPERTY_REF(culture_manager); + ReligionManager PROPERTY_REF(religion_manager); public: PopManager(); - REF_GETTERS(culture_manager) - REF_GETTERS(religion_manager) - bool add_pop_type( std::string_view identifier, colour_t new_colour, PopType::strata_t strata, PopType::sprite_t sprite, Good::good_map_t&& life_needs, Good::good_map_t&& everyday_needs, Good::good_map_t&& luxury_needs, -- cgit v1.2.3-56-ga3b1