From 78f5d8cf644383adf20933ad64c160c07c2c54fb Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 20 Mar 2022 13:17:16 +0100 Subject: refactor: improve input configuring structure --- src/interfaces/game.hpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/interfaces/game.hpp') diff --git a/src/interfaces/game.hpp b/src/interfaces/game.hpp index 3f9d735..cfff8c5 100644 --- a/src/interfaces/game.hpp +++ b/src/interfaces/game.hpp @@ -1,6 +1,12 @@ #pragma once +#include "interfaces/command.hpp" +#include "interfaces/cursor.hpp" +#include "interfaces/scene.hpp" +#include "interfaces/window.hpp" + #include +#include class IGame { @@ -8,6 +14,11 @@ public: virtual ~IGame() = default; virtual void run() = 0; + + [[nodiscard]] virtual std::unordered_map> + get_input_config( + const std::shared_ptr &window, const std::shared_ptr &scene, + const std::shared_ptr &cursor_controller) const noexcept = 0; }; using IGameFactory = std::shared_ptr (*)(); -- cgit v1.2.3-18-g5258