From b36d072ad7a7b9c6e30fcb25d6bbb001a8393468 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 10 Apr 2022 17:20:49 +0200 Subject: refactor: add factory class & make DI container return unique ptrs --- src/interfaces/scene.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/interfaces/scene.hpp') diff --git a/src/interfaces/scene.hpp b/src/interfaces/scene.hpp index 3960985..0a51b6e 100644 --- a/src/interfaces/scene.hpp +++ b/src/interfaces/scene.hpp @@ -4,6 +4,8 @@ #include "interfaces/matrix.hpp" #include "interfaces/window.hpp" +#include "DI/factory.hpp" + #include // NOLINTNEXTLINE(cppcoreguidelines-special-member-functions) @@ -20,6 +22,6 @@ public: -> const std::shared_ptr> & = 0; }; -using ISceneFactory = std::shared_ptr (*)( +using ISceneFactory = Factory( const std::shared_ptr &cursor_controller, - const std::shared_ptr &window); + const std::shared_ptr &window)>; -- cgit v1.2.3-18-g5258