aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/politics/PoliticsManager.hpp
blob: 1423cf7050243f8f41fd4decf26807a9d37d592a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#pragma once

#include "openvic-simulation/politics/Government.hpp"
#include "openvic-simulation/politics/Ideology.hpp"
#include "openvic-simulation/politics/Issue.hpp"
#include "openvic-simulation/politics/NationalValue.hpp"

namespace OpenVic {
   struct PoliticsManager {
   private:
      GovernmentTypeManager government_type_manager;
      IdeologyManager ideology_manager;
      IssueManager issue_manager;
      NationalValueManager national_value_manager;

   public:
      REF_GETTERS(government_type_manager)
      REF_GETTERS(ideology_manager)
      REF_GETTERS(issue_manager)
      REF_GETTERS(national_value_manager)

      inline bool load_government_types_file(ast::NodeCPtr root) {
         return government_type_manager.load_government_types_file(ideology_manager, root);
      }
   };
}