diff options
Diffstat (limited to 'src/interfaces/game.hpp')
-rw-r--r-- | src/interfaces/game.hpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/interfaces/game.hpp b/src/interfaces/game.hpp index 46d79e4..0f5c895 100644 --- a/src/interfaces/game.hpp +++ b/src/interfaces/game.hpp @@ -5,6 +5,8 @@ #include "interfaces/scene.hpp" #include "interfaces/window.hpp" +#include "DI/factory.hpp" + #include <memory> #include <unordered_map> @@ -24,6 +26,12 @@ public: -> std::unordered_map<char, std::shared_ptr<ICommand>> = 0; }; -using IGameFactory = std::shared_ptr<IGame> (*)( +/* +using IGameFactory = std::unique_ptr<IGame> (*)( const std::shared_ptr<IWindow> &window, const std::shared_ptr<IScene> &scene, const std::shared_ptr<ICursorController> &cursor_controller); + */ + +using IGameFactory = Factory<std::unique_ptr<IGame>( + const std::shared_ptr<IWindow> &window, const std::shared_ptr<IScene> &scene, + const std::shared_ptr<ICursorController> &cursor_controller)>; |