mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-10 23:08:05 -05:00
chore: extract ZoneAssetLoaderContainer to separate class
This commit is contained in:
@ -65,12 +65,12 @@ namespace zone_creator
|
||||
|
||||
AssetCreatorCollection creatorCollection(*zone);
|
||||
ZoneDefinitionContext zoneDefinitionContext(*context.m_definition);
|
||||
AssetCreationContext creationContext(*zone, &creatorCollection, &ignoredAssetLookup);
|
||||
|
||||
objCompiler->ConfigureCreatorCollection(
|
||||
creatorCollection, *zone, zoneDefinitionContext, *context.m_asset_search_path, lookup, context.m_out_dir, context.m_cache_dir);
|
||||
objLoader->ConfigureCreatorCollection(creatorCollection, *zone, *context.m_asset_search_path, lookup);
|
||||
|
||||
AssetCreationContext creationContext(zone.get(), &creatorCollection, &ignoredAssetLookup);
|
||||
|
||||
for (const auto& assetEntry : context.m_definition->m_assets)
|
||||
{
|
||||
const auto* createdAsset = creationContext.LoadDependencyGeneric(assetEntry.m_asset_type, assetEntry.m_asset_name);
|
||||
|
Reference in New Issue
Block a user