From 9dd5936333082305b0b9680db2eac9abd128129b Mon Sep 17 00:00:00 2001 From: HampusM Date: Tue, 8 Mar 2022 16:26:17 +0100 Subject: refactor: add game factory --- src/engine/game_initializer.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/engine/game_initializer.hpp') diff --git a/src/engine/game_initializer.hpp b/src/engine/game_initializer.hpp index 12b42de..2f63e0f 100644 --- a/src/engine/game_initializer.hpp +++ b/src/engine/game_initializer.hpp @@ -8,19 +8,19 @@ #include -class GameInitializer - : public IGameInitializer, - public AutoWirable +class GameInitializer : public IGameInitializer, + public AutoWirable { public: GameInitializer(std::shared_ptr scene, std::shared_ptr input_handler, - std::shared_ptr game); + IGameFactory game_factory); void initialize() override; private: std::shared_ptr _scene; std::shared_ptr _input_handler; - std::shared_ptr _game; + IGameFactory _game_factory; }; -- cgit v1.2.3-18-g5258