diff options
author | HampusM <hampus@hampusmat.com> | 2022-05-23 19:46:11 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-06-13 17:56:59 +0200 |
commit | 4b8db1ab0ae53bd8f6685af2fb55a550c04f8199 (patch) | |
tree | 334bc2d5c0287a9317e3e18f69f5cc9bf06711cb /src/engine/graphics/scene.hpp | |
parent | c9297a82291882e4043ae5e0de2e631940e96b52 (diff) |
refactor: use char as matrix element in scene
Diffstat (limited to 'src/engine/graphics/scene.hpp')
-rw-r--r-- | src/engine/graphics/scene.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/engine/graphics/scene.hpp b/src/engine/graphics/scene.hpp index e57e1f8..60b541a 100644 --- a/src/engine/graphics/scene.hpp +++ b/src/engine/graphics/scene.hpp @@ -17,7 +17,7 @@ class Scene : public IScene { public: explicit Scene( - IMatrixFactory<std::string_view> matrix_factory, + IMatrixFactory<MatrixElement> matrix_factory, std::shared_ptr<ICursorController> cursor_controller) noexcept; void enter() noexcept override; @@ -27,10 +27,10 @@ public: [[nodiscard]] auto size() const noexcept -> Bounds override; [[nodiscard]] auto get_matrix() const noexcept - -> const std::shared_ptr<IMatrix<std::string_view>> & override; + -> const std::shared_ptr<IMatrix<MatrixElement>> & override; private: - std::shared_ptr<IMatrix<std::string_view>> _matrix; + std::shared_ptr<IMatrix<MatrixElement>> _matrix; std::shared_ptr<ICursorController> _cursor_controller; bool _is_shown; |