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

Method getAssetDependencyFieldCount

Engine/source/assets/assetBase.cpp:301–316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

299//-----------------------------------------------------------------------------
300
301S32 AssetBase::getAssetDependencyFieldCount(const char* pFieldName)
302{
303 S32 matchedFieldCount = 0;
304 SimFieldDictionary* fieldDictionary = getFieldDictionary();
305 for (SimFieldDictionaryIterator itr(fieldDictionary); *itr; ++itr)
306 {
307 SimFieldDictionary::Entry* entry = *itr;
308
309 if (String(entry->slotName).startsWith(pFieldName))
310 {
311 matchedFieldCount++;
312 }
313 }
314
315 return matchedFieldCount;
316}
317
318//-----------------------------------------------------------------------------
319

Callers 1

Calls 2

startsWithMethod · 0.80
StringClass · 0.50

Tested by

no test coverage detected