diff options
author | HampusM <hampus@hampusmat.com> | 2022-03-10 20:16:14 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-06-13 17:56:55 +0200 |
commit | c988905add09cf8baf46dc61279528f6f39f7a1a (patch) | |
tree | 0c53a36569875f8d4c6e53392876e10fa695c35e /src/interfaces/scene.hpp | |
parent | 38f14606c78c119d452f302f17329455e29a9a6f (diff) |
feat: add status bar
Diffstat (limited to 'src/interfaces/scene.hpp')
-rw-r--r-- | src/interfaces/scene.hpp | 13 |
1 files changed, 8 insertions, 5 deletions
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 <memory> -#include <string_view> 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<IScene> (*)(); +using ISceneFactory = std::shared_ptr<IScene> (*)( + const std::shared_ptr<ICursorController> &cursor_controller, + const std::shared_ptr<IWindow> &window); |