aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/politics/NationalValue.hpp
blob: 3b92f4d867244f069a600bd71908df09457c9d7d (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
28
29
30
#pragma once

#include "openvic-simulation/misc/Modifier.hpp"
#include "openvic-simulation/types/IdentifierRegistry.hpp"

namespace OpenVic {
   struct NationalValueManager;

   struct NationalValue : HasIdentifier {
      friend struct NationalValueManager;

   private:
      const ModifierValue PROPERTY(modifiers);

      NationalValue(std::string_view new_identifier, ModifierValue&& new_modifiers);

   public:
      NationalValue(NationalValue&&) = default;
   };

   struct NationalValueManager {
   private:
      IdentifierRegistry<NationalValue> IDENTIFIER_REGISTRY(national_value);

   public:
      bool add_national_value(std::string_view identifier, ModifierValue&& modifiers);

      bool load_national_values_file(ModifierManager const& modifier_manager, ast::NodeCPtr root);
   };
} // namespace OpenVic