aboutsummaryrefslogtreecommitdiff
path: root/src/game/game.hpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-03-20 13:17:16 +0100
committerHampusM <hampus@hampusmat.com>2022-06-13 17:56:56 +0200
commit78f5d8cf644383adf20933ad64c160c07c2c54fb (patch)
tree2a348d90f8f150665c379bf2f3741731999dd679 /src/game/game.hpp
parentb6061eff99907495de282f611e8389e6468a1fb0 (diff)
refactor: improve input configuring structure
Diffstat (limited to 'src/game/game.hpp')
-rw-r--r--src/game/game.hpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/game/game.hpp b/src/game/game.hpp
index 110b1c8..9ec5b41 100644
--- a/src/game/game.hpp
+++ b/src/game/game.hpp
@@ -1,7 +1,12 @@
#pragma once
#include "DI/auto_wirable.hpp"
+#include "interfaces/cursor.hpp"
#include "interfaces/game.hpp"
+#include "interfaces/scene.hpp"
+#include "interfaces/window.hpp"
+
+#include <memory>
class Game : public IGame, public AutoWirable<IGame, Game>
{
@@ -9,4 +14,10 @@ public:
Game() noexcept = default;
void run() noexcept override;
+
+ [[nodiscard]] std::unordered_map<char, std::shared_ptr<ICommand>>
+ get_input_config(const std::shared_ptr<IWindow> &window,
+ const std::shared_ptr<IScene> &scene,
+ const std::shared_ptr<ICursorController> &cursor_controller)
+ const noexcept override;
};