diff options
author | zaaarf <me@zaaarf.foo> | 2023-12-10 23:15:41 +0100 |
---|---|---|
committer | zaaarf <me@zaaarf.foo> | 2023-12-10 23:15:41 +0100 |
commit | 4ef33d4df6198e613b0f27406d49978c8ea2fb97 (patch) | |
tree | 7f07835485b877f3c01c52c188892499e5812f9b /src/openvic-simulation/politics/NationalFocus.hpp | |
parent | 1eb28bd4fb959b69a30013f6438f0257a2ee7b03 (diff) |
feat: improved identifier registry macro
Diffstat (limited to 'src/openvic-simulation/politics/NationalFocus.hpp')
-rw-r--r-- | src/openvic-simulation/politics/NationalFocus.hpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/openvic-simulation/politics/NationalFocus.hpp b/src/openvic-simulation/politics/NationalFocus.hpp index abf6deb..0fe0ddc 100644 --- a/src/openvic-simulation/politics/NationalFocus.hpp +++ b/src/openvic-simulation/politics/NationalFocus.hpp @@ -51,14 +51,11 @@ namespace OpenVic { struct NationalFocusManager { private: - IdentifierRegistry<NationalFocusGroup> national_focus_groups; - IdentifierRegistry<NationalFocus> national_foci; + IdentifierRegistry<NationalFocusGroup> IDENTIFIER_REGISTRY(national_focus_group); + IdentifierRegistry<NationalFocus> IDENTIFIER_REGISTRY_CUSTOM_PLURAL(national_focus, national_foci); public: - NationalFocusManager(); - inline bool add_national_focus_group(std::string_view identifier); - IDENTIFIER_REGISTRY_ACCESSORS(national_focus_group) inline bool add_national_focus( std::string_view identifier, @@ -69,7 +66,6 @@ namespace OpenVic { NationalFocus::party_loyalty_map_t&& encouraged_loyalty, NationalFocus::production_map_t&& encouraged_production ); - IDENTIFIER_REGISTRY_ACCESSORS_CUSTOM_PLURAL(national_focus, national_foci) bool load_national_foci_file(PopManager const& pop_manager, IdeologyManager const& ideology_manager, GoodManager const& good_manager, ModifierManager const& modifier_manager, ast::NodeCPtr root); }; |