diff options
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) { |