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

Method addAssetDependencyField

Engine/source/assets/assetBase.cpp:362–374  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

360//-----------------------------------------------------------------------------
361
362void AssetBase::addAssetDependencyField(const char* pFieldName, const char* pAssetId)
363{
364 U32 existingFieldCount = getAssetDependencyFieldCount(pFieldName);
365
366 //we have a match!
367 char depSlotName[50];
368 dSprintf(depSlotName, sizeof(depSlotName), "%s%d", pFieldName, existingFieldCount);
369
370 char depValue[255];
371 dSprintf(depValue, sizeof(depValue), "%s=%s", ASSET_ID_SIGNATURE, pAssetId);
372
373 setDataField(StringTable->insert(depSlotName), NULL, StringTable->insert(depValue));
374}
375
376//-----------------------------------------------------------------------------
377bool AssetBase::saveAsset()

Callers 2

saveAssetMethod · 0.80

Calls 2

dSprintfFunction · 0.85
insertMethod · 0.45

Tested by

no test coverage detected