aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/economy/EconomyManager.hpp
diff options
context:
space:
mode:
author Hop311 <Hop3114@gmail.com>2024-06-13 01:25:21 +0200
committer GitHub <noreply@github.com>2024-06-13 01:25:21 +0200
commit01a8f60aaca9784d814f4cb35a3fc4be86e1dd20 (patch)
treeebc9c03b5bd0a6b11068ac37aca302f6ceb24a18 /src/openvic-simulation/economy/EconomyManager.hpp
parenta49e4d0975e2b5dfd13ae50aa716f1a0307e618d (diff)
parentc0ba822ee46551a40ad6b43e8f56b80e27ae35b5 (diff)
Merge pull request #163 from OpenVicProject/good-instance
Add GoodInstance
Diffstat (limited to 'src/openvic-simulation/economy/EconomyManager.hpp')
-rw-r--r--src/openvic-simulation/economy/EconomyManager.hpp16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/openvic-simulation/economy/EconomyManager.hpp b/src/openvic-simulation/economy/EconomyManager.hpp
index adeabd9..caac9c2 100644
--- a/src/openvic-simulation/economy/EconomyManager.hpp
+++ b/src/openvic-simulation/economy/EconomyManager.hpp
@@ -1,23 +1,31 @@
#pragma once
#include "openvic-simulation/economy/BuildingType.hpp"
-#include "openvic-simulation/economy/Good.hpp"
+#include "openvic-simulation/economy/GoodDefinition.hpp"
+#include "openvic-simulation/economy/GoodInstance.hpp"
#include "openvic-simulation/economy/ProductionType.hpp"
namespace OpenVic {
struct EconomyManager {
private:
BuildingTypeManager PROPERTY_REF(building_type_manager);
- GoodManager PROPERTY_REF(good_manager);
+ GoodDefinitionManager PROPERTY_REF(good_definition_manager);
+ GoodInstanceManager PROPERTY_REF(good_instance_manager);
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_manager, pop_manager, root);
+ return production_type_manager.load_production_types_file(good_definition_manager, pop_manager, root);
}
inline bool load_buildings_file(ModifierManager& modifier_manager, ast::NodeCPtr root) {
- return building_type_manager.load_buildings_file(good_manager, production_type_manager, modifier_manager, root);
+ return building_type_manager.load_buildings_file(
+ good_definition_manager, production_type_manager, modifier_manager, root
+ );
+ }
+
+ inline bool setup_good_instances() {
+ return good_instance_manager.setup_good_instances(good_definition_manager);
}
};
}