aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/history/HistoryManager.hpp
blob: ec6d1c5ba5769a163ac8877b36ce9a4cb7d1a141 (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
27
#pragma once

#include "openvic-simulation/history/Bookmark.hpp"
#include "openvic-simulation/history/CountryHistory.hpp"
#include "openvic-simulation/history/ProvinceHistory.hpp"
#include "openvic-simulation/history/DiplomaticHistory.hpp"
#include "openvic-simulation/types/IdentifierRegistry.hpp"

namespace OpenVic {
   struct HistoryManager {
   private:
      BookmarkManager bookmark_manager;
      CountryHistoryManager country_manager;
      ProvinceHistoryManager province_manager;
      DiplomaticHistoryManager diplomacy_manager;

   public:
      REF_GETTERS(bookmark_manager)
      REF_GETTERS(country_manager)
      REF_GETTERS(province_manager)
      REF_GETTERS(diplomacy_manager)

      inline bool load_bookmark_file(ast::NodeCPtr root) {
         return bookmark_manager.load_bookmark_file(root);
      }
   };
}