aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/GameManager.cpp
diff options
context:
space:
mode:
author zaaarf <80046572+zaaarf@users.noreply.github.com>2023-09-23 13:51:09 +0200
committer GitHub <noreply@github.com>2023-09-23 13:51:09 +0200
commit13aff4b4eacecf565a2c9ff948f02cda1eac1903 (patch)
tree89307290fb810ddf0908c1a48c12dac945b2e0fa /src/openvic-simulation/GameManager.cpp
parent4550acf29bd3ce4ff9b9d14788de21d96a5ef90a (diff)
parent7720c6e1bcae39187ee75c2e084a9d4f6bd961fe (diff)
Merge pull request #22 from OpenVicProject/dataloading-military
Dataloading for military (Unit, LandUnity, NavalUnit)
Diffstat (limited to 'src/openvic-simulation/GameManager.cpp')
-rw-r--r--src/openvic-simulation/GameManager.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/openvic-simulation/GameManager.cpp b/src/openvic-simulation/GameManager.cpp
index 4c8b55f..5067a65 100644
--- a/src/openvic-simulation/GameManager.cpp
+++ b/src/openvic-simulation/GameManager.cpp
@@ -1,11 +1,13 @@
#include "GameManager.hpp"
#include "openvic-simulation/utility/Logger.hpp"
+#include "units/Unit.hpp"
using namespace OpenVic;
GameManager::GameManager(state_updated_func_t state_updated_callback)
- : clock { [this]() { tick(); }, [this]() { update_state(); } },
+ : unit_manager { good_manager },
+ clock { [this]() { tick(); }, [this]() { update_state(); } },
state_updated { state_updated_callback } {}
void GameManager::set_needs_update() {