57 {
59
61 if (soundSet ==
string.
Empty)
62 {
63 Debug.
Log(
"No soundset defined for sound event id " +
typename.EnumToString(SoundConstants,
id) +
". Item: " +
m_Parent.GetType() +
" | Slot ID: " + slotId);
64 return;
65 }
66
68 return;
69
73
74 if (params)
76 else
78
79 if (sound)
81 else
82 Debug.
Log(
"Null when creating sound from set: " + soundSet +
" Item: " +
m_Parent.GetType() );
83
85 }
string GetSoundSetForEvent(int id, int slotId=InventorySlots.INVALID)
ref map< int, ref EffectSound > m_PlayingSounds
ref map< int, ref SoundParameters > m_SoundParamsMap
static void Log(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Prints debug message with normal prio.
override void SetAutodestroy(bool auto_destroy)
Sets whether Effect automatically cleans up when it stops.
Wrapper class for managing sound through SEffectManager.
static EffectSound PlaySoundCachedParams(string sound_set, vector position, float play_fade_in=0, float stop_fade_out=0, bool loop=false)
Create and play an EffectSound, using or creating cached SoundParams.
static EffectSound PlaySound(string sound_set, vector position, float play_fade_in=0, float stop_fade_out=0, bool loop=false)
Create and play an EffectSound.
Manager class for managing Effect (EffectParticle, EffectSound)