diff options
author | zaaarf <zaaarf@proton.me> | 2023-09-22 16:14:22 +0200 |
---|---|---|
committer | zaaarf <zaaarf@proton.me> | 2023-09-22 16:14:22 +0200 |
commit | e91e2670abfd4976883c7a5d654d1f5469b4ac7a (patch) | |
tree | 6c79c05b35773972a2338adfeb395c4487f94087 /src/openvic-simulation/GameManager.cpp | |
parent | f68f60efec1b1bad7d0b33fedff82fbfb9d6ebaa (diff) |
feat: removed enum, passed goods manager
Diffstat (limited to 'src/openvic-simulation/GameManager.cpp')
-rw-r--r-- | src/openvic-simulation/GameManager.cpp | 4 |
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() { |