From 9dd5936333082305b0b9680db2eac9abd128129b Mon Sep 17 00:00:00 2001 From: HampusM Date: Tue, 8 Mar 2022 16:26:17 +0100 Subject: refactor: add game factory --- src/interfaces/game.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/interfaces') 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 + class IGame { public: @@ -10,3 +12,5 @@ public: virtual void run(IScene &scene, IInputHandler &input_handler) = 0; }; + +using IGameFactory = std::shared_ptr (*)(); -- cgit v1.2.3-18-g5258