blob: 625be36df320b08dda3fa3f853412cbe2bfd4a5a (
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
31
32
33
34
35
|
#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 modifiers;
NationalValue(std::string_view new_identifier, ModifierValue&& new_modifiers);
public:
NationalValue(NationalValue&&) = default;
ModifierValue const& get_modifiers() const;
};
struct NationalValueManager {
private:
IdentifierRegistry<NationalValue> national_values;
public:
NationalValueManager();
bool add_national_value(std::string_view identifier, ModifierValue&& modifiers);
IDENTIFIER_REGISTRY_ACCESSORS(national_value)
bool load_national_values_file(ModifierManager const& modifier_manager, ast::NodeCPtr root);
};
} // namespace OpenVic
|