aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/scene.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/interfaces/scene.hpp')
-rw-r--r--src/interfaces/scene.hpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/interfaces/scene.hpp b/src/interfaces/scene.hpp
index 903a299..daabb10 100644
--- a/src/interfaces/scene.hpp
+++ b/src/interfaces/scene.hpp
@@ -1,14 +1,18 @@
#pragma once
+#include "interfaces/component.hpp"
#include "interfaces/cursor.hpp"
#include "interfaces/matrix.hpp"
#include "engine/data/bounds.hpp"
+#include "engine/data/vector2.hpp"
#include <yacppdic/factory.hpp>
#include <memory>
#include <string_view>
+#include <utility>
+#include <vector>
// NOLINTNEXTLINE(cppcoreguidelines-special-member-functions)
class IScene
@@ -26,6 +30,13 @@ public:
[[nodiscard]] virtual auto get_matrix() const noexcept
-> const std::shared_ptr<IMatrix<MatrixElement>> & = 0;
+
+ virtual void register_component(
+ const std::shared_ptr<IComponent> &component,
+ const Vector2 &position) noexcept = 0;
+
+ [[nodiscard]] virtual auto get_components() const noexcept
+ -> std::vector<std::pair<std::shared_ptr<IComponent>, Vector2>> = 0;
};
using ISceneFactory = yacppdic::Factory<std::unique_ptr<IScene>(