DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено
SoundSetMap.c
См. документацию.
2{
5
6 static void Init()
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);
16 m_SoundSetMapIDByID.Insert(i,soundClassName);
17 m_SoundSetMapIDByName.Insert(soundClassName,i);
18 //PrintString(soundClassName);
19 }
20 }
21
22 static string GetSoundSetName(int id)
23 {
24 return m_SoundSetMapIDByID.Get(id);
25 }
26
27 static int GetSoundSetID(string name)
28 {
29 return m_SoundSetMapIDByName.Get(name);
30 }
31
32}
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
map
Определения ControlsXboxNew.c:4
string path
Определения OptionSelectorMultistate.c:142
proto bool ConfigGetChildName(string path, int index, out string name)
Get name of subclass in config class on path.
proto native int ConfigGetChildrenCount(string path)
Get count of subclasses in config class on path.
static int GetSoundSetID(string name)
Определения SoundSetMap.c:27
static ref map< int, string > m_SoundSetMapIDByID
Определения SoundSetMap.c:3
static ref map< string, int > m_SoundSetMapIDByName
Определения SoundSetMap.c:4
static void Init()
Определения SoundSetMap.c:6
static string GetSoundSetName(int id)
Определения SoundSetMap.c:22
Определения SoundSetMap.c:2
proto native CGame GetGame()