aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces
diff options
context:
space:
mode:
Diffstat (limited to 'src/interfaces')
-rw-r--r--src/interfaces/scene.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/interfaces/scene.hpp b/src/interfaces/scene.hpp
index 08615a9..903a299 100644
--- a/src/interfaces/scene.hpp
+++ b/src/interfaces/scene.hpp
@@ -16,6 +16,8 @@ class IScene
public:
virtual ~IScene() noexcept = default;
+ using MatrixElement = char;
+
virtual void enter() noexcept = 0;
virtual void leave() noexcept = 0;
@@ -23,7 +25,7 @@ public:
[[nodiscard]] virtual auto size() const noexcept -> Bounds = 0;
[[nodiscard]] virtual auto get_matrix() const noexcept
- -> const std::shared_ptr<IMatrix<std::string_view>> & = 0;
+ -> const std::shared_ptr<IMatrix<MatrixElement>> & = 0;
};
using ISceneFactory = yacppdic::Factory<std::unique_ptr<IScene>(