Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
itemsoundhandler.c File Reference

Go to the source code of this file.

Data Structures

class  SoundParameters

Functions

void ~ItemSoundHandler ()
void AddSound (int sound, string soundset, SoundParameters params=null)
string GetSoundSetForEvent (int id, int slotId=InventorySlots.INVALID)
void Init ()
void ItemSoundHandler (ItemBase parent)
void PlayItemSoundClient (int id, int slotId=InventorySlots.INVALID)
void StopItemSoundClient (int id)

Variables

ref map< int, stringm_AvailableSoundsets
class SoundParameters m_Parent
ref map< int, ref EffectSoundm_PlayingSounds
ref map< int, ref SoundParametersm_SoundParamsMap

Function Documentation

◆ ~ItemSoundHandler()

void ~ItemSoundHandler ( )
protected

Definition at line 37 of file itemsoundhandler.c.

References m_PlayingSounds.

◆ AddSound()

void AddSound ( int sound,
string soundset,
SoundParameters params = null )
protected

Definition at line 130 of file itemsoundhandler.c.

References m_AvailableSoundsets, and m_SoundParamsMap.

◆ GetSoundSetForEvent()

string GetSoundSetForEvent ( int id,
int slotId = InventorySlots.INVALID )
protected

Definition at line 87 of file itemsoundhandler.c.

References InventoryItemType(), m_AvailableSoundsets, and m_Parent.

Referenced by PlayItemSoundClient().

◆ Init()

void Init ( )
protected

Definition at line 49 of file itemsoundhandler.c.

References m_AvailableSoundsets, m_PlayingSounds, and m_SoundParamsMap.

◆ ItemSoundHandler()

◆ PlayItemSoundClient()

◆ StopItemSoundClient()

void StopItemSoundClient ( int id)
protected

Variable Documentation

◆ m_AvailableSoundsets

ref map<int, string> m_AvailableSoundsets
protected

Definition at line 28 of file itemsoundhandler.c.

Referenced by AddSound(), GetSoundSetForEvent(), and Init().

◆ m_Parent

class SoundParameters m_Parent

◆ m_PlayingSounds

ref map<int, ref EffectSound> m_PlayingSounds
protected

◆ m_SoundParamsMap

ref map<int, ref SoundParameters> m_SoundParamsMap
protected

Definition at line 29 of file itemsoundhandler.c.

Referenced by AddSound(), Init(), and PlayItemSoundClient().