mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-06-07 01:02:35 +00:00
Add AssetLoader basis
This commit is contained in:
@@ -87,3 +87,16 @@ SearchPaths ObjLoading::GetIWDSearchPaths()
|
||||
|
||||
return iwdPaths;
|
||||
}
|
||||
|
||||
bool ObjLoading::LoadAssetForZone(AssetLoadingContext* context, const asset_type_t assetType, const std::string& assetName)
|
||||
{
|
||||
for (const auto* loader : OBJ_LOADERS)
|
||||
{
|
||||
if (loader->SupportsZone(context->m_zone))
|
||||
{
|
||||
return loader->LoadAssetForZone(context, assetType, assetName);
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user