diff options
author | HampusM <hampus@hampusmat.com> | 2022-03-08 16:26:17 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-06-13 17:56:55 +0200 |
commit | 9dd5936333082305b0b9680db2eac9abd128129b (patch) | |
tree | c99bff09a066bde806a520058347b549ed287a9f /src/interfaces/game.hpp | |
parent | 3a24ec6e5b5236ad6b943548b9948603e053559d (diff) |
refactor: add game factory
Diffstat (limited to 'src/interfaces/game.hpp')
-rw-r--r-- | src/interfaces/game.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/interfaces/game.hpp b/src/interfaces/game.hpp index eb13dc3..85c20e5 100644 --- a/src/interfaces/game.hpp +++ b/src/interfaces/game.hpp @@ -3,6 +3,8 @@ #include "interfaces/input.hpp" #include "interfaces/scene.hpp" +#include <memory> + class IGame { public: @@ -10,3 +12,5 @@ public: virtual void run(IScene &scene, IInputHandler &input_handler) = 0; }; + +using IGameFactory = std::shared_ptr<IGame> (*)(); |