From 4b8db1ab0ae53bd8f6685af2fb55a550c04f8199 Mon Sep 17 00:00:00 2001 From: HampusM Date: Mon, 23 May 2022 19:46:11 +0200 Subject: refactor: use char as matrix element in scene --- src/interfaces/scene.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/interfaces') 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> & = 0; + -> const std::shared_ptr> & = 0; }; using ISceneFactory = yacppdic::Factory( -- cgit v1.2.3-18-g5258