From e4701ebc08f57575a02bdc1777d9851a987c1cba Mon Sep 17 00:00:00 2001 From: hop311 Date: Sun, 14 Jul 2024 15:01:25 +0100 Subject: Unit and leader rework (branch based templates and colony containers) --- src/openvic-simulation/InstanceManager.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/openvic-simulation/InstanceManager.cpp') 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(); } -- cgit v1.2.3-56-ga3b1