| 360 | //----------------------------------------------------------------------------- |
| 361 | |
| 362 | void 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 | //----------------------------------------------------------------------------- |
| 377 | bool AssetBase::saveAsset() |
no test coverage detected