aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/misc/Decision.hpp
diff options
context:
space:
mode:
author zaaarf <me@zaaarf.foo>2023-12-10 23:15:41 +0100
committer zaaarf <me@zaaarf.foo>2023-12-10 23:15:41 +0100
commit4ef33d4df6198e613b0f27406d49978c8ea2fb97 (patch)
tree7f07835485b877f3c01c52c188892499e5812f9b /src/openvic-simulation/misc/Decision.hpp
parent1eb28bd4fb959b69a30013f6438f0257a2ee7b03 (diff)
feat: improved identifier registry macro
Diffstat (limited to 'src/openvic-simulation/misc/Decision.hpp')
-rw-r--r--src/openvic-simulation/misc/Decision.hpp5
1 files changed, 1 insertions, 4 deletions
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<Decision> decisions;
+ IdentifierRegistry<Decision> 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);
};