mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-16 00:54:54 +00:00
More Implements
-Most Vehicles and FX classes -Vehicle classes may need more preloads for assets.
This commit is contained in:
parent
1ea693fea6
commit
704eb27600
14 changed files with 191 additions and 147 deletions
|
|
@ -118,7 +118,17 @@ struct WheeledVehicleData: public VehicleData
|
|||
WheelImpactSound,
|
||||
MaxSounds,
|
||||
};
|
||||
SFXTrack* sound[MaxSounds];
|
||||
DECLARE_SOUNDASSET_ARRAY(WheeledVehicleData, WheeledVehicleSounds, Sounds::MaxSounds);
|
||||
DECLARE_SOUNDASSET_ARRAY_SETGET(WheeledVehicleData, WheeledVehicleSounds);
|
||||
|
||||
SFXProfile* getWheeledVehicleSound(U32 id)
|
||||
{
|
||||
if (mWheeledVehicleSoundsAsset[id] != NULL)
|
||||
return mWheeledVehicleSoundsAsset[id]->getSfxProfile();
|
||||
else
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
ParticleEmitterData* tireEmitter;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue