diff options
author | hop311 <hop3114@gmail.com> | 2024-07-14 16:01:25 +0200 |
---|---|---|
committer | hop311 <hop3114@gmail.com> | 2024-07-14 16:25:34 +0200 |
commit | e4701ebc08f57575a02bdc1777d9851a987c1cba (patch) | |
tree | db365e5d71df41b7b35abdcc3d4c0d76f1653619 /src/openvic-simulation/InstanceManager.cpp | |
parent | b9b35ad9536cfdcd61f5208eeaad7ead4bd0418d (diff) |
Unit and leader rework (branch based templates and colony containers)unit-colonies
Diffstat (limited to 'src/openvic-simulation/InstanceManager.cpp')
-rw-r--r-- | src/openvic-simulation/InstanceManager.cpp | 9 |
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(); } |