aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/military/LeaderTrait.hpp
diff options
context:
space:
mode:
author zaaarf <me@zaaarf.foo>2023-12-10 23:15:41 +0100
committer zaaarf <me@zaaarf.foo>2023-12-10 23:15:41 +0100
commit4ef33d4df6198e613b0f27406d49978c8ea2fb97 (patch)
tree7f07835485b877f3c01c52c188892499e5812f9b /src/openvic-simulation/military/LeaderTrait.hpp
parent1eb28bd4fb959b69a30013f6438f0257a2ee7b03 (diff)
feat: improved identifier registry macro
Diffstat (limited to 'src/openvic-simulation/military/LeaderTrait.hpp')
-rw-r--r--src/openvic-simulation/military/LeaderTrait.hpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/openvic-simulation/military/LeaderTrait.hpp b/src/openvic-simulation/military/LeaderTrait.hpp
index 4ec3b63..0d84814 100644
--- a/src/openvic-simulation/military/LeaderTrait.hpp
+++ b/src/openvic-simulation/military/LeaderTrait.hpp
@@ -43,16 +43,13 @@ namespace OpenVic {
struct LeaderTraitManager {
private:
- IdentifierRegistry<LeaderTrait> leader_traits;
+ IdentifierRegistry<LeaderTrait> IDENTIFIER_REGISTRY(leader_trait);
static inline const string_set_t allowed_modifiers = {
"attack", "defence", "morale", "organisation", "reconnaissance", "speed", "attrition", "experience", "reliability"
};
public:
- LeaderTraitManager();
-
bool add_leader_trait(std::string_view identifier, LeaderTrait::trait_type_t type, ModifierValue&& modifiers);
- IDENTIFIER_REGISTRY_ACCESSORS(leader_trait)
bool load_leader_traits_file(ModifierManager const& modifier_manager, ast::NodeCPtr root);
};