DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ Init()

static void SoundSetMap::Init ( )
inlinestaticprivate

См. определение в файле SoundSetMap.c строка 6

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 }
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 ref map< int, string > m_SoundSetMapIDByID
Определения SoundSetMap.c:3
static ref map< string, int > m_SoundSetMapIDByName
Определения SoundSetMap.c:4
proto native CGame GetGame()

Перекрестные ссылки CGame::ConfigGetChildName(), CGame::ConfigGetChildrenCount(), GetGame(), m_SoundSetMapIDByID, m_SoundSetMapIDByName и path.

Используется в MissionBaseWorld::MissionBase().