aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/politics/PoliticsManager.hpp
diff options
context:
space:
mode:
author hop311 <hop3114@gmail.com>2023-10-13 00:05:49 +0200
committer hop311 <hop3114@gmail.com>2023-10-13 00:05:49 +0200
commit6b3d2315225468e03bef30e942263fe9b8fc06fa (patch)
treefbcc59a1637cd13a0024ed1c8ff17dcf2e1a6ed7 /src/openvic-simulation/politics/PoliticsManager.hpp
parente50c67eb1aaa54f5fb31425f81616bea4e6b880a (diff)
Further cleanup and rearrangement
Diffstat (limited to 'src/openvic-simulation/politics/PoliticsManager.hpp')
-rw-r--r--src/openvic-simulation/politics/PoliticsManager.hpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/openvic-simulation/politics/PoliticsManager.hpp b/src/openvic-simulation/politics/PoliticsManager.hpp
new file mode 100644
index 0000000..9072d72
--- /dev/null
+++ b/src/openvic-simulation/politics/PoliticsManager.hpp
@@ -0,0 +1,22 @@
+#pragma once
+
+#include "openvic-simulation/politics/Government.hpp"
+#include "openvic-simulation/politics/Ideology.hpp"
+#include "openvic-simulation/politics/Issue.hpp"
+
+namespace OpenVic {
+ struct PoliticsManager {
+ private:
+ GovernmentTypeManager government_type_manager;
+ IdeologyManager ideology_manager;
+ IssueManager issue_manager;
+ public:
+ REF_GETTERS(government_type_manager)
+ REF_GETTERS(ideology_manager)
+ REF_GETTERS(issue_manager)
+
+ inline bool load_government_types_file(ast::NodeCPtr root) {
+ return government_type_manager.load_government_types_file(ideology_manager, root);
+ }
+ };
+}