aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/InstanceManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/openvic-simulation/InstanceManager.cpp')
-rw-r--r--src/openvic-simulation/InstanceManager.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/openvic-simulation/InstanceManager.cpp b/src/openvic-simulation/InstanceManager.cpp
index 7ee5fb8..c51dec7 100644
--- a/src/openvic-simulation/InstanceManager.cpp
+++ b/src/openvic-simulation/InstanceManager.cpp
@@ -36,10 +36,15 @@ void InstanceManager::update_gamestate() {
return;
}
currently_updating_gamestate = true;
+
Logger::info("Update: ", today);
+
+ // Update gamestate...
map_instance.update_gamestate(today);
+
gamestate_updated();
gamestate_needs_update = false;
+
currently_updating_gamestate = false;
}
@@ -48,8 +53,12 @@ void InstanceManager::update_gamestate() {
*/
void InstanceManager::tick() {
today++;
+
Logger::info("Tick: ", today);
+
+ // Tick...
map_instance.tick(today);
+
set_gamestate_needs_update();
}