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

Method getAssetModuleDefinition

Engine/source/assets/assetManager.cpp:607–621  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

605//-----------------------------------------------------------------------------
606
607ModuleDefinition* AssetManager::getAssetModuleDefinition( const char* pAssetId )
608{
609 // Find asset definition.
610 AssetDefinition* pAssetDefinition = findAsset( pAssetId );
611
612 // Did we find the asset?
613 if ( pAssetDefinition == NULL )
614 {
615 // No, so warn.
616 Con::warnf( "Asset Manager: Cannot find asset Id '%s'.", pAssetId );
617 return NULL;
618 }
619
620 return pAssetDefinition->mpModuleDefinition;
621}
622
623//-----------------------------------------------------------------------------
624

Callers 2

validateAssetMethod · 0.80

Calls 1

warnfFunction · 0.50

Tested by

no test coverage detected