17 #include <ht_platform.h> 18 #include <ht_noncopy.h> 19 #include <ht_refcounted.h> 20 #include <ht_singleton.h> 23 #include <unordered_map> 24 #include <type_traits> 25 #include <ht_path_singleton.h> 26 #include <ht_jsonhelper.h> 34 template<
typename ResourceType>
40 template<
typename... Args>
41 static Core::Handle<const ResourceType> GetHandle(
const std::string& ID, Args&&... args)
43 Core::Handle<ResourceType> handle = Core::RefCounted<ResourceType>::GetHandle(ID, std::forward<Args>(args)...);
44 if (handle.IsValid() )
45 return handle.template StaticCastHandle<const ResourceType>();
47 return Core::Handle<const ResourceType>();
50 static Core::Handle<const ResourceType> GetHandleFromFileName(
const std::string& fileName);
65 #include <ht_resource.inl> Definition: ht_resource.h:35
Hatchit Engine Copyright(c) 2015-2016 Third-Degree.
Definition: ht_assimp.h:31