More Implements

-Most Vehicles and FX classes
-Vehicle classes may need more preloads for assets.
This commit is contained in:
marauder2k7 2021-09-20 13:07:50 +01:00
parent 1ea693fea6
commit 704eb27600
14 changed files with 191 additions and 147 deletions

View file

@ -44,6 +44,7 @@
#include "lighting/lightInfo.h"
#endif
#include "T3D/assets/SoundAsset.h"
#include "T3D/assets/ShapeAsset.h"
class ExplosionData;
@ -115,7 +116,14 @@ public:
DecalData *decal; // (impact) Decal Datablock
S32 decalId; // (impact) Decal ID
SFXTrack* sound; // Projectile Sound
DECLARE_SOUNDASSET(ProjectileData, ProjectileSound);
DECLARE_SOUNDASSET_SETGET(ProjectileData, ProjectileSound);
SFXProfile* getSFXProfile() {
if (mProjectileSoundAsset.notNull())
return mProjectileSoundAsset->getSfxProfile();
else
return NULL;
}
LightDescription *lightDesc;
S32 lightDescId;