diff options
author | HampusM <hampus@hampusmat.com> | 2022-06-02 20:07:09 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-06-13 17:57:00 +0200 |
commit | cf3bfd60ad03f2feb2ccc62a12fc2922bdc2fb71 (patch) | |
tree | 9ea6c1465ec499cff6b24fe57d1a1b2e469a2dd1 /src/bootstrap.cpp | |
parent | eecf4b1e666211a13afa56f93477c55e8fd01621 (diff) |
refactor: remove randomization & argument parser
Diffstat (limited to 'src/bootstrap.cpp')
-rw-r--r-- | src/bootstrap.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/bootstrap.cpp b/src/bootstrap.cpp index adb53a2..1effa96 100644 --- a/src/bootstrap.cpp +++ b/src/bootstrap.cpp @@ -1,7 +1,6 @@ #include "bootstrap.hpp" // Interfaces -#include "interfaces/argument_parser.hpp" #include "interfaces/cell_helper.hpp" #include "interfaces/cursor.hpp" #include "interfaces/engine.hpp" @@ -9,13 +8,11 @@ #include "interfaces/generation_tracker.hpp" #include "interfaces/input.hpp" #include "interfaces/matrix.hpp" -#include "interfaces/randomization.hpp" #include "interfaces/scene.hpp" #include "interfaces/status_manager.hpp" #include "interfaces/statusline.hpp" // Implementations -#include "argument_parser.hpp" #include "engine/data/bounds.hpp" #include "engine/data/vector2.hpp" #include "engine/engine.hpp" @@ -28,8 +25,6 @@ #include "game/game.hpp" #include "game/generation_tracker.hpp" #include "game/status_manager.hpp" -#include "randomization/generator.hpp" -#include "randomization/seed_generator.hpp" #include <fmt/core.h> @@ -43,11 +38,9 @@ auto bootstrap() noexcept -> yacppdic::Container { auto container = yacppdic::Container(); - container.bind<IArgumentParser>().to<ArgumentParser>(); container.bind<IUserInputObserver>().to<UserInputObserver>(); container.bind<ICursorController>().to<CursorController>(); container.bind<ICLIGameEngine>().to<CLIGameEngine>(); - container.bind<ISeedGenerator>().to<SeedGenerator>(); container.bind<IGameFactory>().to_factory( [&container]( @@ -75,12 +68,6 @@ auto bootstrap() noexcept -> yacppdic::Container cell_helper_factory(*(scene->get_matrix()))); }); - container.bind<IRandomNumberGeneratorFactory>().to_factory( - [](const uint32_t &seed) - { - return std::make_unique<RandomNumberGenerator>(seed); - }); - container.bind<IMatrixFactory<char>>().to_factory( [](const Bounds &bounds) { |