From 927e065f9829045247be7c0b3296408b6f577c1f Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 12 Jun 2022 13:44:58 +0200 Subject: feat: add reading RLE files --- src/bootstrap.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/bootstrap.cpp') 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().to(); container.bind().to(); container.bind().to(); + container.bind().to(); container.bind().to_factory( [&container]( @@ -57,6 +60,8 @@ auto bootstrap() noexcept -> yacppdic::Container const auto cell_helper_factory = container.get>(); + std::shared_ptr rle_reader = container.get(); + return std::make_unique( 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>().to_factory( -- cgit v1.2.3-18-g5258