diff options
author | zaaarf <zaaarf@proton.me> | 2023-12-01 20:03:03 +0100 |
---|---|---|
committer | zaaarf <zaaarf@proton.me> | 2023-12-01 20:03:03 +0100 |
commit | 2d76e0766f0d65ffd8c9eb19eaec705445f91af0 (patch) | |
tree | a3ba37c2d652b95085ac8cf72a25941da26498ad /src/openvic-simulation/politics/PoliticsManager.hpp | |
parent | a54898b7770e0d66b729216173960686c67e58bb (diff) |
feat: replaced REF_GETTERS with PROPERTY_REF, added PROPERTY_CUSTOM_PREFIX
Diffstat (limited to 'src/openvic-simulation/politics/PoliticsManager.hpp')
-rw-r--r-- | src/openvic-simulation/politics/PoliticsManager.hpp | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/src/openvic-simulation/politics/PoliticsManager.hpp b/src/openvic-simulation/politics/PoliticsManager.hpp index b30d1c0..532e64f 100644 --- a/src/openvic-simulation/politics/PoliticsManager.hpp +++ b/src/openvic-simulation/politics/PoliticsManager.hpp @@ -9,19 +9,13 @@ namespace OpenVic { struct PoliticsManager { private: - GovernmentTypeManager government_type_manager; - IdeologyManager ideology_manager; - IssueManager issue_manager; - NationalValueManager national_value_manager; - NationalFocusManager national_focus_manager; + GovernmentTypeManager PROPERTY_REF(government_type_manager); + IdeologyManager PROPERTY_REF(ideology_manager); + IssueManager PROPERTY_REF(issue_manager); + NationalValueManager PROPERTY_REF(national_value_manager); + NationalFocusManager PROPERTY_REF(national_focus_manager); public: - REF_GETTERS(government_type_manager) - REF_GETTERS(ideology_manager) - REF_GETTERS(issue_manager) - REF_GETTERS(national_value_manager) - REF_GETTERS(national_focus_manager) - inline bool load_government_types_file(ast::NodeCPtr root) { return government_type_manager.load_government_types_file(ideology_manager, root); } |