diff options
author | HampusM <hampus@hampusmat.com> | 2022-06-08 16:21:40 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-06-13 17:57:01 +0200 |
commit | dcc6d3d5cafe47d53d1b321476bf73bb2d65ae9b (patch) | |
tree | 8fabd71b3f71d82a63694031dda1a89c49fb4f15 /src/bootstrap.cpp | |
parent | 3f9004b598fc8006576db9b8d2ae4e080101101b (diff) |
refactor: remove unused cursor controller dependency from scene
Diffstat (limited to 'src/bootstrap.cpp')
-rw-r--r-- | src/bootstrap.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/bootstrap.cpp b/src/bootstrap.cpp index e651512..1231937 100644 --- a/src/bootstrap.cpp +++ b/src/bootstrap.cpp @@ -39,6 +39,7 @@ auto bootstrap() noexcept -> yacppdic::Container container.bind<ICursorController>().to<CursorController>(); container.bind<ICLIGameEngine>().to<CLIGameEngine>(); container.bind<IStatusManager>().to<StatusManager>(); + container.bind<IScene>().to<Scene>(); container.bind<IGameFactory>().to_factory( [&container]( @@ -72,14 +73,6 @@ auto bootstrap() noexcept -> yacppdic::Container return std::make_unique<Matrix<char>>(bounds); }); - container.bind<ISceneFactory>().to_factory( - [&container](const std::shared_ptr<ICursorController> &cursor_controller) - { - auto matrix_factory = container.get<IMatrixFactory<Scene::MatrixElement>>(); - - return std::make_unique<Scene>(matrix_factory, cursor_controller); - }); - container.bind<IStatusLineFactory>().to_factory( [&container](const Bounds &size) { |