blob: 0a51b6e8de5f0c3fa18ee3539cb4b7b13e7c4668 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#pragma once
#include "interfaces/cursor.hpp"
#include "interfaces/matrix.hpp"
#include "interfaces/window.hpp"
#include "DI/factory.hpp"
#include <memory>
// NOLINTNEXTLINE(cppcoreguidelines-special-member-functions)
class IScene
{
public:
virtual ~IScene() noexcept = default;
virtual void enter() noexcept = 0;
virtual void leave() noexcept = 0;
[[nodiscard]] virtual auto get_matrix() const noexcept
-> const std::shared_ptr<IMatrix<std::string_view>> & = 0;
};
using ISceneFactory = Factory<std::unique_ptr<IScene>(
const std::shared_ptr<ICursorController> &cursor_controller,
const std::shared_ptr<IWindow> &window)>;
|