blob: 47df5fa3c722162717f9a09dda46e35a0fdf23cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#pragma once
#include "interfaces/cursor.hpp"
#include "interfaces/matrix.hpp"
#include "interfaces/window.hpp"
#include <memory>
class IScene
{
public:
virtual ~IScene() noexcept = default;
virtual void enter() noexcept = 0;
virtual void leave() noexcept = 0;
virtual void write_status(const std::string_view &str) noexcept = 0;
};
using ISceneFactory = std::shared_ptr<IScene> (*)(
const std::shared_ptr<ICursorController> &cursor_controller,
const std::shared_ptr<IWindow> &window);
|