aboutsummaryrefslogtreecommitdiff
path: root/src/game/game.hpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-02-27 17:12:49 +0100
committerHampusM <hampus@hampusmat.com>2022-06-13 17:56:53 +0200
commitfe79577396231f2edb7927f1f61ce814f03851a7 (patch)
treed353a1caa449ec772dcf9a8681084fc2d6e64116 /src/game/game.hpp
parent6964d48c970e5f7b11897096c816271785af23ac (diff)
add basic engine graphics
Diffstat (limited to 'src/game/game.hpp')
-rw-r--r--src/game/game.hpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/game/game.hpp b/src/game/game.hpp
index 4c7e5e1..6abb349 100644
--- a/src/game/game.hpp
+++ b/src/game/game.hpp
@@ -2,15 +2,17 @@
#include "DI/auto_wirable.hpp"
#include "interfaces/game.hpp"
-#include "interfaces/vector2.hpp"
+#include "interfaces/scene.hpp"
-class Game : public IGame, public AutoWirable<IGame, Game, IVector2Factory>
+#include <memory>
+
+class Game : public IGame, public AutoWirable<IGame, Game, IScene>
{
public:
- explicit Game(IVector2Factory vector2_factory);
+ explicit Game(const std::shared_ptr<IScene> &scene);
void run() override;
private:
- IVector2Factory _vector2_factory;
+ const std::shared_ptr<IScene> &_scene;
};