diff options
Diffstat (limited to 'src/interfaces/game.hpp')
-rw-r--r-- | src/interfaces/game.hpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/interfaces/game.hpp b/src/interfaces/game.hpp index cfff8c5..c99c01f 100644 --- a/src/interfaces/game.hpp +++ b/src/interfaces/game.hpp @@ -13,12 +13,14 @@ class IGame public: virtual ~IGame() = default; - virtual void run() = 0; + virtual void on_start() = 0; + + virtual void on_exit() const noexcept = 0; [[nodiscard]] virtual 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 = 0; + get_input_config() const noexcept = 0; }; -using IGameFactory = std::shared_ptr<IGame> (*)(); +using IGameFactory = std::shared_ptr<IGame> (*)( + const std::shared_ptr<IWindow> &window, const std::shared_ptr<IScene> &scene, + const std::shared_ptr<ICursorController> &cursor_controller); |