diff options
Diffstat (limited to 'src/bootstrap.cpp')
-rw-r--r-- | src/bootstrap.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/bootstrap.cpp b/src/bootstrap.cpp index 3554183..16d38a3 100644 --- a/src/bootstrap.cpp +++ b/src/bootstrap.cpp @@ -1,6 +1,7 @@ #include "bootstrap.hpp" // Interfaces +#include "interfaces/RLE_reader.hpp" #include "interfaces/cell_helper.hpp" #include "interfaces/component.hpp" #include "interfaces/component_renderer.hpp" @@ -23,6 +24,7 @@ #include "engine/graphics/scene.hpp" #include "engine/user/cursor.hpp" #include "engine/user/input.hpp" +#include "game/RLE_reader.hpp" #include "game/cell_helper.hpp" #include "game/components/statusline.hpp" #include "game/game.hpp" @@ -40,6 +42,7 @@ auto bootstrap() noexcept -> yacppdic::Container container.bind<ICLIGameEngine>().to<CLIGameEngine>(); container.bind<IStatusManager>().to<StatusManager>(); container.bind<IScene>().to<Scene>(); + container.bind<IRLEReader>().to<RLEReader>(); container.bind<IGameFactory>().to_factory( [&container]( @@ -57,6 +60,8 @@ auto bootstrap() noexcept -> yacppdic::Container const auto cell_helper_factory = container.get<ICellHelperFactory<char>>(); + std::shared_ptr<IRLEReader> rle_reader = container.get<IRLEReader>(); + return std::make_unique<Game>( statusline_factory, scene, @@ -64,7 +69,8 @@ auto bootstrap() noexcept -> yacppdic::Container generation_tracker, status_manager, user_input_observer, - cell_helper_factory(*(scene->get_matrix()))); + cell_helper_factory(*(scene->get_matrix())), + rle_reader); }); container.bind<IMatrixFactory<char>>().to_factory( |