From e91e2670abfd4976883c7a5d654d1f5469b4ac7a Mon Sep 17 00:00:00 2001 From: zaaarf Date: Fri, 22 Sep 2023 16:14:22 +0200 Subject: feat: removed enum, passed goods manager --- src/openvic-simulation/GameManager.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/openvic-simulation/GameManager.cpp') 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() { -- cgit v1.2.3-56-ga3b1