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/Ideology.hpp | |
parent | 1eb28bd4fb959b69a30013f6438f0257a2ee7b03 (diff) |
feat: improved identifier registry macro
Diffstat (limited to 'src/openvic-simulation/politics/Ideology.hpp')
-rw-r--r-- | src/openvic-simulation/politics/Ideology.hpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/openvic-simulation/politics/Ideology.hpp b/src/openvic-simulation/politics/Ideology.hpp index dd3f07a..8039dbd 100644 --- a/src/openvic-simulation/politics/Ideology.hpp +++ b/src/openvic-simulation/politics/Ideology.hpp @@ -37,20 +37,16 @@ namespace OpenVic { struct IdeologyManager { private: - IdentifierRegistry<IdeologyGroup> ideology_groups; - IdentifierRegistry<Ideology> ideologies; + IdentifierRegistry<IdeologyGroup> IDENTIFIER_REGISTRY(ideology_group); + IdentifierRegistry<Ideology> IDENTIFIER_REGISTRY_CUSTOM_PLURAL(ideology, ideologies); public: - IdeologyManager(); - bool add_ideology_group(std::string_view identifier); - IDENTIFIER_REGISTRY_ACCESSORS(ideology_group) bool add_ideology( std::string_view identifier, colour_t colour, IdeologyGroup const* group, bool uncivilised, bool can_reduce_militancy, Date spawn_date ); - IDENTIFIER_REGISTRY_ACCESSORS_CUSTOM_PLURAL(ideology, ideologies) bool load_ideology_file(ast::NodeCPtr root); }; |