From 2bcf699b9e11ccf848393882257fc3986bd28e45 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 27 Feb 2022 15:24:07 +0100 Subject: add game & vector2 --- src/bootstrap.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/bootstrap.cpp') diff --git a/src/bootstrap.cpp b/src/bootstrap.cpp index 85498bc..ce07621 100644 --- a/src/bootstrap.cpp +++ b/src/bootstrap.cpp @@ -2,10 +2,14 @@ // Interfaces #include "interfaces/argument_parser.hpp" +#include "interfaces/game.hpp" #include "interfaces/randomization.hpp" +#include "interfaces/vector2.hpp" // Implementations #include "argument_parser.hpp" +#include "engine/graphics/vector2.hpp" +#include "game/game.hpp" #include "randomization/generator.hpp" #include "randomization/seed_generator.hpp" @@ -17,6 +21,7 @@ Container bootstrap() auto container = Container(); container.bind().to(); + container.bind().to(); container.bind().to_factory( [](const unsigned int &seed) @@ -32,5 +37,12 @@ Container bootstrap() std::make_shared(std::make_unique())); }); + container.bind().to_factory( + [](const IVector2Options &options) + { + return std::dynamic_pointer_cast( + std::make_shared(options)); + }); + return container; } -- cgit v1.2.3-18-g5258