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/history/HistoryManager.hpp | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'src/openvic-simulation/history/HistoryManager.hpp') diff --git a/src/openvic-simulation/history/HistoryManager.hpp b/src/openvic-simulation/history/HistoryManager.hpp index a7fc668..35aebbf 100644 --- a/src/openvic-simulation/history/HistoryManager.hpp +++ b/src/openvic-simulation/history/HistoryManager.hpp @@ -9,15 +9,9 @@ namespace OpenVic { struct HistoryManager { private: - BookmarkManager bookmark_manager; - CountryHistoryManager country_manager; - ProvinceHistoryManager province_manager; - DiplomaticHistoryManager diplomacy_manager; - - public: - REF_GETTERS(bookmark_manager) - REF_GETTERS(country_manager) - REF_GETTERS(province_manager) - REF_GETTERS(diplomacy_manager) + BookmarkManager PROPERTY_REF(bookmark_manager); + CountryHistoryManager PROPERTY_REF(country_manager); + ProvinceHistoryManager PROPERTY_REF(province_manager); + DiplomaticHistoryManager PROPERTY_REF(diplomacy_manager); }; } -- cgit v1.2.3-56-ga3b1