aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/economy/EconomyManager.hpp
diff options
context:
space:
mode:
author Hop311 <Hop3114@gmail.com>2024-07-19 00:26:16 +0200
committer GitHub <noreply@github.com>2024-07-19 00:26:16 +0200
commita673f89bb2705826b1c646365eab1775727372b7 (patch)
tree3f2a270b5b85f91a22289091084a30c105f10f4d /src/openvic-simulation/economy/EconomyManager.hpp
parent93d095ba30747c7158882668577c854be7ea39a1 (diff)
parentd236dcf30c001e540377184565f4d173ed56f76e (diff)
Merge pull request #171 from OpenVicProject/optimize/string-interning
Optimize some string interning cases
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) {