aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/GameManager.cpp
diff options
context:
space:
mode:
author hop311 <hop3114@gmail.com>2024-09-06 22:12:10 +0200
committer hop311 <hop3114@gmail.com>2024-09-06 22:12:10 +0200
commit34c8b1039a5a7982a84c718ca8625efcd940bbf5 (patch)
tree479bddfb6a01b2627118ee2b71adea4105fe8718 /src/openvic-simulation/GameManager.cpp
parent429765a8cdc93cc8975d2676d04cb628c21064a4 (diff)
Trigger gamestate update in headless mode + add `update_clock` functionsupdate-clock
Diffstat (limited to 'src/openvic-simulation/GameManager.cpp')
-rw-r--r--src/openvic-simulation/GameManager.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/openvic-simulation/GameManager.cpp b/src/openvic-simulation/GameManager.cpp
index 2577b54..2980dbd 100644
--- a/src/openvic-simulation/GameManager.cpp
+++ b/src/openvic-simulation/GameManager.cpp
@@ -74,3 +74,12 @@ bool GameManager::start_game_session() {
return instance_manager->start_game_session();
}
+
+bool GameManager::update_clock() {
+ if (!instance_manager) {
+ Logger::error("Cannot update clock - instance manager uninitialised!");
+ return false;
+ }
+
+ return instance_manager->update_clock();
+}