diff options
author | HampusM <hampus@hampusmat.com> | 2022-03-05 13:26:55 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-06-13 17:56:54 +0200 |
commit | 6119f1428b3615e4738a121c6acf343942107fd9 (patch) | |
tree | 47eb5537674fe58ae8ad388521203b92bfb43529 /src/game/game.hpp | |
parent | d27f1a89266e141a944f88e9080bdeca95c49da3 (diff) |
refactor: move input config to own file & improve cleanup
Diffstat (limited to 'src/game/game.hpp')
-rw-r--r-- | src/game/game.hpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/game/game.hpp b/src/game/game.hpp index c52399d..ea8145a 100644 --- a/src/game/game.hpp +++ b/src/game/game.hpp @@ -3,19 +3,18 @@ #include "DI/auto_wirable.hpp" #include "interfaces/game.hpp" #include "interfaces/input.hpp" +#include "interfaces/input_configurator.hpp" #include "interfaces/scene.hpp" -#include "engine/user/cursor.hpp" - #include <memory> -class Game : public IGame, public AutoWirable<IGame, Game, CursorController> +class Game : public IGame, public AutoWirable<IGame, Game, IInputConfigurator> { public: - explicit Game(std::shared_ptr<CursorController> cursor_controller); + explicit Game(std::shared_ptr<IInputConfigurator> input_configurator); void run(IScene &scene, IInputHandler &input_handler) override; private: - std::shared_ptr<CursorController> _cursor_controller; + std::shared_ptr<IInputConfigurator> _input_configurator; }; |