mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 14:44:36 +00:00
misc fixes
utilize specialty case soundarray macros. slim duplicate entries in vehicle already hand;ed by rigidshape. create a gamebasedata::onnewdatablock which calls onremove and onadd for the db for those classes like wheeledvehicle that expect mounting logic to occur
This commit is contained in:
parent
54a2235128
commit
8821f62b0c
13 changed files with 98 additions and 420 deletions
|
|
@ -73,9 +73,9 @@ DefineEnumType(hoverSoundsEnum);
|
|||
|
||||
ImplementEnumType(hoverSoundsEnum, "enum types.\n"
|
||||
"@ingroup HoverVehicleData\n\n")
|
||||
{ HoverVehicleData::JetSound, "JetSound", "..." },
|
||||
{ HoverVehicleData::EngineSound, "EngineSound", "..." },
|
||||
{ HoverVehicleData::FloatSound, "FloatSound", "..." },
|
||||
{ hoverSoundsEnum::JetSound, "JetSound", "..." },
|
||||
{ hoverSoundsEnum::EngineSound, "EngineSound", "..." },
|
||||
{ hoverSoundsEnum::FloatSound, "FloatSound", "..." },
|
||||
EndImplementEnumType;
|
||||
|
||||
namespace {
|
||||
|
|
@ -162,7 +162,7 @@ HoverVehicleData::HoverVehicleData()
|
|||
jetEmitter[j] = 0;
|
||||
|
||||
for (S32 i = 0; i < MaxSounds; i++)
|
||||
INIT_ASSET_ARRAY(HoverSounds, i);
|
||||
INIT_SOUNDASSET_ARRAY(HoverSounds, i);
|
||||
}
|
||||
|
||||
HoverVehicleData::~HoverVehicleData()
|
||||
|
|
@ -370,7 +370,7 @@ void HoverVehicleData::packData(BitStream* stream)
|
|||
|
||||
for (S32 i = 0; i < MaxSounds; i++)
|
||||
{
|
||||
PACKDATA_ASSET_ARRAY(HoverSounds, i);
|
||||
PACKDATA_SOUNDASSET_ARRAY(HoverSounds, i);
|
||||
}
|
||||
|
||||
for (S32 j = 0; j < MaxJetEmitters; j++)
|
||||
|
|
@ -419,7 +419,7 @@ void HoverVehicleData::unpackData(BitStream* stream)
|
|||
|
||||
for (S32 i = 0; i < MaxSounds; i++)
|
||||
{
|
||||
UNPACKDATA_ASSET_ARRAY(HoverSounds, i);
|
||||
UNPACKDATA_SOUNDASSET_ARRAY(HoverSounds, i);
|
||||
}
|
||||
|
||||
for (S32 j = 0; j < MaxJetEmitters; j++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue