DayZ 1.24
Loading...
Searching...
No Matches
SoundSetMap Class Reference

Static Private Member Functions

static void Init ()
 
static string GetSoundSetName (int id)
 
static int GetSoundSetID (string name)
 

Static Private Attributes

static ref map< int, stringm_SoundSetMapIDByID = new map<int, string>
 
static ref map< string, intm_SoundSetMapIDByName = new map<string, int>
 

Detailed Description

Definition at line 1 of file SoundSetMap.c.

Member Function Documentation

◆ GetSoundSetID()

static int SoundSetMap::GetSoundSetID ( string name)
inlinestaticprivate

Definition at line 27 of file SoundSetMap.c.

28 {
29 return m_SoundSetMapIDByName.Get(name);
30 }
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
static ref map< string, int > m_SoundSetMapIDByName
Definition SoundSetMap.c:4

References m_SoundSetMapIDByName, and name.

◆ GetSoundSetName()

static string SoundSetMap::GetSoundSetName ( int id)
inlinestaticprivate

Definition at line 22 of file SoundSetMap.c.

23 {
24 return m_SoundSetMapIDByID.Get(id);
25 }
static ref map< int, string > m_SoundSetMapIDByID
Definition SoundSetMap.c:3

References m_SoundSetMapIDByID.

◆ Init()

static void SoundSetMap::Init ( )
inlinestaticprivate

Definition at line 6 of file SoundSetMap.c.

7 {
8 string path = "CfgSoundSets";
9
10 int soundCount = GetGame().ConfigGetChildrenCount(path);
11
12 for (int i = 1; i < soundCount; i++)
13 {
14 string soundClassName;
15 GetGame().ConfigGetChildName(path, i, soundClassName);
18 //PrintString(soundClassName);
19 }
20 }
proto native CGame GetGame()

References GetGame(), m_SoundSetMapIDByID, m_SoundSetMapIDByName, and path.

Referenced by MissionBaseWorld::MissionBase().

Member Data Documentation

◆ m_SoundSetMapIDByID

ref map<int, string> SoundSetMap::m_SoundSetMapIDByID = new map<int, string>
staticprivate

Definition at line 3 of file SoundSetMap.c.

Referenced by GetSoundSetName(), and Init().

◆ m_SoundSetMapIDByName

ref map<string, int> SoundSetMap::m_SoundSetMapIDByName = new map<string, int>
staticprivate

Definition at line 4 of file SoundSetMap.c.

Referenced by GetSoundSetID(), and Init().


The documentation for this class was generated from the following file: