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

Method isAssetPrivate

Engine/source/assets/assetManager.cpp:643–657  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

641//-----------------------------------------------------------------------------
642
643bool AssetManager::isAssetPrivate( const char* pAssetId )
644{
645 // Find asset definition.
646 AssetDefinition* pAssetDefinition = findAsset( pAssetId );
647
648 // Did we find the asset?
649 if ( pAssetDefinition == NULL )
650 {
651 // No, so warn.
652 Con::warnf( "Asset Manager: Cannot find asset Id '%s'.", pAssetId );
653 return false;
654 }
655
656 return pAssetDefinition->mAssetPrivate;
657}
658
659//-----------------------------------------------------------------------------
660

Callers 1

Calls 1

warnfFunction · 0.50

Tested by

no test coverage detected