aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/scene.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/interfaces/scene.hpp')
-rw-r--r--src/interfaces/scene.hpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/interfaces/scene.hpp b/src/interfaces/scene.hpp
index 01be07d..08615a9 100644
--- a/src/interfaces/scene.hpp
+++ b/src/interfaces/scene.hpp
@@ -2,11 +2,13 @@
#include "interfaces/cursor.hpp"
#include "interfaces/matrix.hpp"
-#include "interfaces/window.hpp"
+
+#include "engine/data/bounds.hpp"
#include <yacppdic/factory.hpp>
#include <memory>
+#include <string_view>
// NOLINTNEXTLINE(cppcoreguidelines-special-member-functions)
class IScene
@@ -18,10 +20,11 @@ public:
virtual void leave() noexcept = 0;
+ [[nodiscard]] virtual auto size() const noexcept -> Bounds = 0;
+
[[nodiscard]] virtual auto get_matrix() const noexcept
-> const std::shared_ptr<IMatrix<std::string_view>> & = 0;
};
using ISceneFactory = yacppdic::Factory<std::unique_ptr<IScene>(
- const std::shared_ptr<ICursorController> &cursor_controller,
- const std::shared_ptr<IWindow> &window)>;
+ const std::shared_ptr<ICursorController> &cursor_controller)>;