aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/politics
diff options
context:
space:
mode:
Diffstat (limited to 'src/openvic-simulation/politics')
-rw-r--r--src/openvic-simulation/politics/Government.hpp2
-rw-r--r--src/openvic-simulation/politics/PoliticsManager.hpp22
2 files changed, 23 insertions, 1 deletions
diff --git a/src/openvic-simulation/politics/Government.hpp b/src/openvic-simulation/politics/Government.hpp
index 3bc754c..c72dae6 100644
--- a/src/openvic-simulation/politics/Government.hpp
+++ b/src/openvic-simulation/politics/Government.hpp
@@ -39,4 +39,4 @@ namespace OpenVic {
bool load_government_types_file(IdeologyManager const& ideology_manager, ast::NodeCPtr root);
};
-} // namespace OpenVic
+} // namespace OpenVic
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);
+ }
+ };
+}