diff options
author | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-09-22 10:58:21 +0200 |
---|---|---|
committer | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-09-22 10:58:21 +0200 |
commit | 765485ced528ca2f4cf644a1503b9446c5826731 (patch) | |
tree | e9d35c04a8768afb38873daa31d1b47a3da93e54 /resource-manager/resource_manager.cpp | |
parent | 507a97739726feb74ffa91e317ead1773183ccbf (diff) |
spritesheet werkt
Diffstat (limited to 'resource-manager/resource_manager.cpp')
-rw-r--r-- | resource-manager/resource_manager.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/resource-manager/resource_manager.cpp b/resource-manager/resource_manager.cpp index ce4d5dc..e8828a4 100644 --- a/resource-manager/resource_manager.cpp +++ b/resource-manager/resource_manager.cpp @@ -24,21 +24,6 @@ ResourceManager::~ResourceManager(){ } -Resource* ResourceManager::Load(const Constants::FILE_PATH& file_path){ - - if(m_resources.find(file_path) != m_resources.end( )){ - return m_resources[file_path]; - } - - Resource* res = ResourceFactory::create_resource(file_path); - if(res){ - m_resources[file_path] = std::move(res); - } - - return m_resources[file_path]; -} - - void ResourceManager::Unload(const Constants::FILE_PATH& file_path){ std::unordered_map<Constants::FILE_PATH, Resource* >::iterator itr = m_resources.find(file_path); if(itr != m_resources.end()){ |