diff options
author | wvpm <24685035+wvpm@users.noreply.github.com> | 2024-10-28 11:07:15 +0100 |
---|---|---|
committer | wvpm <24685035+wvpm@users.noreply.github.com> | 2024-11-04 14:09:10 +0100 |
commit | 89e9c05f4d6276efa82fe486156357f841f864c3 (patch) | |
tree | 559be137cbbc7339c9d62658bf8a33366852bae5 /src/openvic-simulation/InstanceManager.cpp | |
parent | 4eba08af501560e9139a562c53fbbc8b694fb4cf (diff) |
Add market placeholder
Diffstat (limited to 'src/openvic-simulation/InstanceManager.cpp')
-rw-r--r-- | src/openvic-simulation/InstanceManager.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/openvic-simulation/InstanceManager.cpp b/src/openvic-simulation/InstanceManager.cpp index 277b439..4d8e2d6 100644 --- a/src/openvic-simulation/InstanceManager.cpp +++ b/src/openvic-simulation/InstanceManager.cpp @@ -62,6 +62,7 @@ void InstanceManager::tick() { // Tick... map_instance.map_tick(today); + market_instance.execute_orders(); set_gamestate_needs_update(); } @@ -73,8 +74,10 @@ bool InstanceManager::setup() { } bool ret = good_instance_manager.setup(definition_manager.get_economy_manager().get_good_definition_manager()); + ret &= market_instance.setup(good_instance_manager); ret &= map_instance.setup( definition_manager.get_economy_manager().get_building_type_manager(), + market_instance, definition_manager.get_modifier_manager().get_modifier_effect_cache(), definition_manager.get_pop_manager().get_pop_types(), definition_manager.get_politics_manager().get_ideology_manager().get_ideologies() |