diff options
author | Spartan322 <Megacake1234@gmail.com> | 2024-07-06 16:40:57 +0200 |
---|---|---|
committer | Spartan322 <Megacake1234@gmail.com> | 2024-07-18 04:20:15 +0200 |
commit | d236dcf30c001e540377184565f4d173ed56f76e (patch) | |
tree | 3f2a270b5b85f91a22289091084a30c105f10f4d /src/openvic-simulation/military/Wargoal.hpp | |
parent | 93d095ba30747c7158882668577c854be7ea39a1 (diff) |
Optimize some string interning casesoptimize/string-interning
Diffstat (limited to 'src/openvic-simulation/military/Wargoal.hpp')
-rw-r--r-- | src/openvic-simulation/military/Wargoal.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/openvic-simulation/military/Wargoal.hpp b/src/openvic-simulation/military/Wargoal.hpp index ecd8056..8387821 100644 --- a/src/openvic-simulation/military/Wargoal.hpp +++ b/src/openvic-simulation/military/Wargoal.hpp @@ -1,5 +1,7 @@ #pragma once +#include <openvic-dataloader/v2script/Parser.hpp> + #include "openvic-simulation/scripts/ConditionScript.hpp" #include "openvic-simulation/scripts/EffectScript.hpp" #include "openvic-simulation/types/EnumBitfield.hpp" @@ -111,7 +113,7 @@ namespace OpenVic { ConditionScript&& allowed_countries, EffectScript&& on_add, EffectScript&& on_po_accepted ); - bool load_wargoal_file(ast::NodeCPtr root); + bool load_wargoal_file(ovdl::v2script::Parser const& parser); bool parse_scripts(DefinitionManager const& definition_manager); }; |