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

◆ DayZPlayerTypeSoundTableImpl()

void DayZPlayerTypeSoundTableImpl ( )
private

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

254 {
256
257 string soundsCfgPath = "CfgVehicles SurvivorBase AnimEvents Sounds ";
258
259 int soundCount = GetGame().ConfigGetChildrenCount(soundsCfgPath);
260 for(int i = 0; i < soundCount; i++)
261 {
262 string soundName;
263 GetGame().ConfigGetChildName(soundsCfgPath, i, soundName);
264 string soundPath = soundsCfgPath + soundName + " ";
265 AnimSoundEvent soundEvent = new AnimSoundEvent(soundPath);
266 if(soundEvent.IsValid())
267 m_AnimSoundEvents.Set(soundEvent.m_iID, soundEvent);
268 }
269 }
map
Определения ControlsXboxNew.c:4
ref map< int, ref AnimSoundEvent > m_AnimSoundEvents
Определения DayZPlayerCfgSounds.c:251
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.
proto native CGame GetGame()

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

Используется в DayZPlayerTypeRegisterSounds().