29 #ifndef THOR_RESOURCELOADER_HPP
30 #define THOR_RESOURCELOADER_HPP
55 typedef std::function< std::unique_ptr<R>() >
Loader;
67 : mLoader(std::move(loader))
74 std::unique_ptr<R>
load()
const
98 #endif // THOR_RESOURCELOADER_HPP
std::string getInfo() const
Returns a string describing the resource loader.
Definition: ResourceLoader.hpp:81
Definition: AnimationMap.hpp:42
Configuration header of the library.
std::unique_ptr< R > load() const
Loads a resource.
Definition: ResourceLoader.hpp:74
std::function< std::unique_ptr< R >) > Loader
Function type to load a resource.
Definition: ResourceLoader.hpp:55
Class storing loading information for resources.
Definition: ResourceLoader.hpp:48
ResourceLoader(std::function< std::unique_ptr< R >() > loader, std::string id)
Constructor.
Definition: ResourceLoader.hpp:66