aboutsummaryrefslogtreecommitdiff
path: root/src/bootstrap.cpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-03-03 20:40:29 +0100
committerHampusM <hampus@hampusmat.com>2022-06-13 17:56:54 +0200
commitd27f1a89266e141a944f88e9080bdeca95c49da3 (patch)
treebe78081c7b71f335b59057d25bc817bcb1306d36 /src/bootstrap.cpp
parentb8e33c5aa3417bdf7989bef55cc449f75f806b76 (diff)
refactor: add game initializer
Diffstat (limited to 'src/bootstrap.cpp')
-rw-r--r--src/bootstrap.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bootstrap.cpp b/src/bootstrap.cpp
index bd2cbbd..abee66e 100644
--- a/src/bootstrap.cpp
+++ b/src/bootstrap.cpp
@@ -4,6 +4,7 @@
#include "interfaces/argument_parser.hpp"
#include "interfaces/bounds.hpp"
#include "interfaces/game.hpp"
+#include "interfaces/game_initializer.hpp"
#include "interfaces/input.hpp"
#include "interfaces/matrix.hpp"
#include "interfaces/randomization.hpp"
@@ -12,6 +13,7 @@
// Implementations
#include "argument_parser.hpp"
+#include "engine/game_initializer.hpp"
#include "engine/graphics/bounds.hpp"
#include "engine/graphics/scene.hpp"
#include "engine/graphics/string_matrix.hpp"
@@ -35,6 +37,7 @@ Container bootstrap()
container.bind<IScene>().to<Scene>();
container.bind<IInputHandler>().to<InputHandler>();
container.bind<CursorController>().to<CursorController>();
+ container.bind<IGameInitializer>().to<GameInitializer>();
container.bind<IRandomNumberGeneratorFactory>().to_factory(
[](const unsigned int &seed)