From 4ef33d4df6198e613b0f27406d49978c8ea2fb97 Mon Sep 17 00:00:00 2001 From: zaaarf Date: Sun, 10 Dec 2023 23:15:41 +0100 Subject: feat: improved identifier registry macro --- src/openvic-simulation/misc/Decision.hpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/openvic-simulation/misc/Decision.hpp') diff --git a/src/openvic-simulation/misc/Decision.hpp b/src/openvic-simulation/misc/Decision.hpp index e477f64..452512d 100644 --- a/src/openvic-simulation/misc/Decision.hpp +++ b/src/openvic-simulation/misc/Decision.hpp @@ -30,17 +30,14 @@ namespace OpenVic { struct DecisionManager { private: - IdentifierRegistry decisions; + IdentifierRegistry IDENTIFIER_REGISTRY(decision); public: - DecisionManager(); - bool add_decision( std::string_view identifier, bool alert, bool news, std::string_view news_title, std::string_view news_desc_long, std::string_view news_desc_medium, std::string_view news_desc_short, std::string_view picture ); - IDENTIFIER_REGISTRY_ACCESSORS(decision) bool load_decision_file(ast::NodeCPtr root); }; -- cgit v1.2.3-56-ga3b1