soundasset augments: get<name>Profile methods, test for emptystring, initialize asset arrays

lightning provides a conversion sample (attempt. it's still yelling)
This commit is contained in:
AzaezelX 2021-09-26 17:30:13 -05:00
parent 2181ce08c3
commit dba0899887
3 changed files with 21 additions and 22 deletions

View file

@ -92,22 +92,6 @@ class LightningData : public GameBaseData
DECLARE_CONOBJECT(LightningData);
static void initPersistFields();
SFXProfile* getThunderProfile(U32 id)
{
if (mThunderSoundAsset[id] != NULL)
return mThunderSoundAsset[id]->getSfxProfile();
return NULL;
}
SFXProfile* getSFXProfile() {
if (mStrikeSoundAsset.notNull())
return mStrikeSoundAsset->getSfxProfile();
return NULL;
}
};