diff options
Diffstat (limited to 'src/bootstrap.cpp')
-rw-r--r-- | src/bootstrap.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/bootstrap.cpp b/src/bootstrap.cpp index 14aa922..6d42263 100644 --- a/src/bootstrap.cpp +++ b/src/bootstrap.cpp @@ -44,7 +44,7 @@ auto bootstrap() noexcept -> yacppdic::Container auto container = yacppdic::Container(); container.bind<IArgumentParser>().to<ArgumentParser>(); - container.bind<IInputHandler>().to<InputHandler>(); + container.bind<IUserInputObserver>().to<UserInputObserver>(); container.bind<ICursorController>().to<CursorController>(); container.bind<ICLIGameEngine>().to<CLIGameEngine>(); container.bind<ISeedGenerator>().to<SeedGenerator>(); @@ -52,7 +52,8 @@ auto bootstrap() noexcept -> yacppdic::Container container.bind<IGameFactory>().to_factory( [&container]( const std::shared_ptr<IScene> &scene, - const std::shared_ptr<ICursorController> &cursor_controller) + const std::shared_ptr<ICursorController> &cursor_controller, + const std::shared_ptr<IUserInputObserver> user_input_observer) { std::shared_ptr<IStatusLine> statusline = container.get<IStatusLineFactory>()(cursor_controller, scene); @@ -71,6 +72,7 @@ auto bootstrap() noexcept -> yacppdic::Container cursor_controller, generation_tracker, status_manager, + user_input_observer, vector2_statusline_subscriber_adapter_factory); }); |