aboutsummaryrefslogtreecommitdiff
path: root/src/engine/engine.hpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-06-08 16:21:40 +0200
committerHampusM <hampus@hampusmat.com>2022-06-13 17:57:01 +0200
commitdcc6d3d5cafe47d53d1b321476bf73bb2d65ae9b (patch)
tree8fabd71b3f71d82a63694031dda1a89c49fb4f15 /src/engine/engine.hpp
parent3f9004b598fc8006576db9b8d2ae4e080101101b (diff)
refactor: remove unused cursor controller dependency from scene
Diffstat (limited to 'src/engine/engine.hpp')
-rw-r--r--src/engine/engine.hpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/engine/engine.hpp b/src/engine/engine.hpp
index a274ed4..28eb8fc 100644
--- a/src/engine/engine.hpp
+++ b/src/engine/engine.hpp
@@ -19,26 +19,26 @@ class CLIGameEngine : public ICLIGameEngine,
ICLIGameEngine,
CLIGameEngine,
IGameFactory,
- ISceneFactory,
IComponentRendererFactory,
IUserInputObserver,
- ICursorController>
+ ICursorController,
+ IScene>
{
public:
CLIGameEngine(
IGameFactory game_factory,
- ISceneFactory scene_factory,
IComponentRendererFactory component_renderer_factory,
std::shared_ptr<IUserInputObserver> user_input_observer,
- std::shared_ptr<ICursorController> cursor_controller) noexcept;
+ std::shared_ptr<ICursorController> cursor_controller,
+ std::shared_ptr<IScene> scene) noexcept;
void start() noexcept override;
private:
IGameFactory _game_factory;
- ISceneFactory _scene_factory;
IComponentRendererFactory _component_renderer_factory;
std::shared_ptr<IUserInputObserver> _user_input_observer;
std::shared_ptr<ICursorController> _cursor_controller;
+ std::shared_ptr<IScene> _scene;
};