diff options
Diffstat (limited to 'resource-manager/resource_fabricator.h')
-rw-r--r-- | resource-manager/resource_fabricator.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/resource-manager/resource_fabricator.h b/resource-manager/resource_fabricator.h index 3489341..2d46b00 100644 --- a/resource-manager/resource_fabricator.h +++ b/resource-manager/resource_fabricator.h @@ -2,8 +2,13 @@ +#include "Audio_asset.h" +#include "Image_asset.h" #include "resource.h" #include "constants.h" +#include "spritesheet.h" +#include <SDL_render.h> + using namespace crepe; @@ -13,8 +18,10 @@ class ResourceFactory { public: - static Resource* create_resource(const Constants::FILE_PATH& file_path); - + template<typename T> + static Resource* create_resource(const Constants::FILE_PATH& file_path){ + return new T(file_path); + } }; |