clean up redundant loads, shift first load to getResource methods for sound and shape.

still need to properly sort image
This commit is contained in:
AzaezelX 2023-10-09 14:41:14 -05:00
parent b710a309bd
commit a8d640e311
5 changed files with 5 additions and 16 deletions

View file

@ -132,7 +132,7 @@ public:
virtual void copyTo(SimObject* object);
//SFXResource* getSound() { return mSoundResource; }
Resource<SFXResource> getSoundResource() { return mSFXProfile.getResource(); }
Resource<SFXResource> getSoundResource() { loadSound(); return mSFXProfile.getResource(); }
/// Declare Console Object.
DECLARE_CONOBJECT(SoundAsset);