aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/economy/EconomyManager.hpp
diff options
context:
space:
mode:
author Spartan322 <Megacake1234@gmail.com>2024-07-06 16:40:57 +0200
committer Spartan322 <Megacake1234@gmail.com>2024-07-18 04:20:15 +0200
commitd236dcf30c001e540377184565f4d173ed56f76e (patch)
tree3f2a270b5b85f91a22289091084a30c105f10f4d /src/openvic-simulation/economy/EconomyManager.hpp
parent93d095ba30747c7158882668577c854be7ea39a1 (diff)
Optimize some string interning casesoptimize/string-interning
Diffstat (limited to 'src/openvic-simulation/economy/EconomyManager.hpp')
-rw-r--r--src/openvic-simulation/economy/EconomyManager.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/openvic-simulation/economy/EconomyManager.hpp b/src/openvic-simulation/economy/EconomyManager.hpp
index 668774d..2464912 100644
--- a/src/openvic-simulation/economy/EconomyManager.hpp
+++ b/src/openvic-simulation/economy/EconomyManager.hpp
@@ -3,6 +3,7 @@
#include "openvic-simulation/economy/BuildingType.hpp"
#include "openvic-simulation/economy/GoodDefinition.hpp"
#include "openvic-simulation/economy/ProductionType.hpp"
+#include "openvic-dataloader/v2script/Parser.hpp"
namespace OpenVic {
struct EconomyManager {
@@ -12,8 +13,8 @@ namespace OpenVic {
ProductionTypeManager PROPERTY_REF(production_type_manager);
public:
- inline bool load_production_types_file(PopManager const& pop_manager, ast::NodeCPtr root) {
- return production_type_manager.load_production_types_file(good_definition_manager, pop_manager, root);
+ inline bool load_production_types_file(PopManager const& pop_manager, ovdl::v2script::Parser const& parser) {
+ return production_type_manager.load_production_types_file(good_definition_manager, pop_manager, parser);
}
inline bool load_buildings_file(ModifierManager& modifier_manager, ast::NodeCPtr root) {