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/pop/Religion.hpp | |
parent | 1eb28bd4fb959b69a30013f6438f0257a2ee7b03 (diff) |
feat: improved identifier registry macro
Diffstat (limited to 'src/openvic-simulation/pop/Religion.hpp')
-rw-r--r-- | src/openvic-simulation/pop/Religion.hpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/openvic-simulation/pop/Religion.hpp b/src/openvic-simulation/pop/Religion.hpp index 6f34eee..14c2f57 100644 --- a/src/openvic-simulation/pop/Religion.hpp +++ b/src/openvic-simulation/pop/Religion.hpp @@ -38,19 +38,15 @@ namespace OpenVic { struct ReligionManager { private: - IdentifierRegistry<ReligionGroup> religion_groups; - IdentifierRegistry<Religion> religions; + IdentifierRegistry<ReligionGroup> IDENTIFIER_REGISTRY(religion_group); + IdentifierRegistry<Religion> IDENTIFIER_REGISTRY(religion); public: - ReligionManager(); - bool add_religion_group(std::string_view identifier); - IDENTIFIER_REGISTRY_ACCESSORS(religion_group) bool add_religion( std::string_view identifier, colour_t colour, ReligionGroup const& group, Religion::icon_t icon, bool pagan ); - IDENTIFIER_REGISTRY_ACCESSORS(religion) bool load_religion_file(ast::NodeCPtr root); }; |