From c988905add09cf8baf46dc61279528f6f39f7a1a Mon Sep 17 00:00:00 2001 From: HampusM Date: Thu, 10 Mar 2022 20:16:14 +0100 Subject: feat: add status bar --- src/interfaces/scene.hpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'src/interfaces/scene.hpp') diff --git a/src/interfaces/scene.hpp b/src/interfaces/scene.hpp index ca494cb..47df5fa 100644 --- a/src/interfaces/scene.hpp +++ b/src/interfaces/scene.hpp @@ -5,16 +5,19 @@ #include "interfaces/window.hpp" #include -#include class IScene { public: - virtual ~IScene() = default; + virtual ~IScene() noexcept = default; - virtual void enter() = 0; + virtual void enter() noexcept = 0; - virtual void leave() = 0; + virtual void leave() noexcept = 0; + + virtual void write_status(const std::string_view &str) noexcept = 0; }; -using ISceneFactory = std::shared_ptr (*)(); +using ISceneFactory = std::shared_ptr (*)( + const std::shared_ptr &cursor_controller, + const std::shared_ptr &window); -- cgit v1.2.3-18-g5258