diff options
author | hop311 <hop3114@gmail.com> | 2023-10-13 00:05:49 +0200 |
---|---|---|
committer | hop311 <hop3114@gmail.com> | 2023-10-13 00:05:49 +0200 |
commit | 6b3d2315225468e03bef30e942263fe9b8fc06fa (patch) | |
tree | fbcc59a1637cd13a0024ed1c8ff17dcf2e1a6ed7 /src/openvic-simulation/politics | |
parent | e50c67eb1aaa54f5fb31425f81616bea4e6b880a (diff) |
Further cleanup and rearrangement
Diffstat (limited to 'src/openvic-simulation/politics')
-rw-r--r-- | src/openvic-simulation/politics/Government.hpp | 2 | ||||
-rw-r--r-- | src/openvic-simulation/politics/PoliticsManager.hpp | 22 |
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); + } + }; +} |