MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / removeDeclaredAssets

Method removeDeclaredAssets

Engine/source/assets/assetManager.cpp:390–416  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

388//-----------------------------------------------------------------------------
389
390bool AssetManager::removeDeclaredAssets( ModuleDefinition* pModuleDefinition )
391{
392 // Debug Profiling.
393 PROFILE_SCOPE(AssetManager_RemoveDeclaredAssets);
394
395 // Sanity!
396 AssertFatal( pModuleDefinition != NULL, "Cannot remove declared assets using a NULL module definition" );
397
398 // Fetch module assets.
399 ModuleDefinition::typeModuleAssetsVector& moduleAssets = pModuleDefinition->getModuleAssets();
400
401 // Remove all module assets.
402 while ( moduleAssets.size() > 0 )
403 {
404 // Fetch asset definition.
405 AssetDefinition* pAssetDefinition = *moduleAssets.begin();
406
407 // Remove this asset.
408 removeDeclaredAsset( pAssetDefinition->mAssetId );
409 }
410
411 // Info.
412 if ( mEchoInfo )
413 Con::printSeparator();
414
415 return true;
416}
417
418//-----------------------------------------------------------------------------
419

Callers 1

Calls 3

printSeparatorFunction · 0.85
sizeMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected