aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-05-23 19:46:11 +0200
committerHampusM <hampus@hampusmat.com>2022-06-13 17:56:59 +0200
commit4b8db1ab0ae53bd8f6685af2fb55a550c04f8199 (patch)
tree334bc2d5c0287a9317e3e18f69f5cc9bf06711cb /src/interfaces
parentc9297a82291882e4043ae5e0de2e631940e96b52 (diff)
refactor: use char as matrix element in scene
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>(