aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/game.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/interfaces/game.hpp')
-rw-r--r--src/interfaces/game.hpp4
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> (*)();