mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 06:34:36 +00:00
Refactor of sound asset
Refactored to match image asset.
This commit is contained in:
parent
5796f0ea07
commit
71273e63c9
46 changed files with 639 additions and 775 deletions
|
|
@ -228,8 +228,6 @@ Material::Material()
|
|||
|
||||
mFootstepSoundId = -1; mImpactSoundId = -1;
|
||||
mImpactFXIndex = -1;
|
||||
INIT_ASSET(CustomFootstepSound);
|
||||
INIT_ASSET(CustomImpactSound);
|
||||
mFriction = 0.0;
|
||||
|
||||
mDirectSoundOcclusion = 1.f;
|
||||
|
|
|
|||
|
|
@ -356,10 +356,8 @@ public:
|
|||
/// Sound effect to play when walking on surface with this material.
|
||||
/// If defined, overrides mFootstepSoundId.
|
||||
/// @see mFootstepSoundId
|
||||
DECLARE_SOUNDASSET(Material, CustomFootstepSound);
|
||||
DECLARE_ASSET_SETGET(Material, CustomFootstepSound);
|
||||
DECLARE_SOUNDASSET(Material, CustomImpactSound);
|
||||
DECLARE_ASSET_SETGET(Material, CustomImpactSound);
|
||||
DECLARE_SOUNDASSET(Material, CustomFootstepSound)
|
||||
DECLARE_SOUNDASSET(Material, CustomImpactSound)
|
||||
|
||||
F32 mFriction; ///< Friction coefficient when moving along surface.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue