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

◆ LoadTable()

void SoundLookupTable::LoadTable ( string soundLookupTableName)
inlineprivate

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

16 {
17 string path = "CfgSoundTables " + m_tableCategoryName + " " + soundLookupTableName;
18
19 //load all classes names
20 int soundCount = GetGame().ConfigGetChildrenCount(path);
21
22 for(int i = 0; i < soundCount; i++)
23 {
24 string soundClassName;
25 GetGame().ConfigGetChildName(path, i, soundClassName);
26 string soundClassPath = path + " " + soundClassName + " ";
27
28 string parameter;
29 GetGame().ConfigGetText(soundClassPath + m_parameterName, parameter);
30
31 array<string> soundSetNames = new array<string>;
32 GetGame().ConfigGetTextArray(soundClassPath + "soundSets", soundSetNames);
33
34 //TODO create SoundObject for every entry, save in Game?
35 array<SoundObjectBuilder> soundObjectBuilders = new array<SoundObjectBuilder>;
36 for(int j = 0; j < soundSetNames.Count(); j++)
37 {
39 SoundObjectBuilder soundObjectBuilder = bank.GetBuilder(soundSetNames.Get(j));
40
41 if(soundObjectBuilder != NULL)
42 soundObjectBuilders.Insert(soundObjectBuilder);
43 }
44
45 if(soundObjectBuilders.Count() > 0)
46 {
47 //Print("SoundLookupTable::LoadTable: path: " + path + " param:" + parameter + " param#:" + parameter.Hash() + " objBuildersCount: " + soundObjectBuilders.Count());
48 m_soundBuilders.Insert(parameter.Hash(), soundObjectBuilders);
49 }
50 }
51 }
void AnimSoundObjectBuilderBank()
Определения DayZAnimEventMaps.c:180
string path
Определения OptionSelectorMultistate.c:142
SoundObjectBuilder GetBuilder(string soundSetName)
Определения DayZAnimEventMaps.c:150
proto bool ConfigGetChildName(string path, int index, out string name)
Get name of subclass in config class on path.
proto native void ConfigGetTextArray(string path, out TStringArray values)
Get array of strings from config on path.
proto bool ConfigGetText(string path, out string value)
Get string value from config on path.
proto native int ConfigGetChildrenCount(string path)
Get count of subclasses in config class on path.
ref map< int, ref array< SoundObjectBuilder > > m_soundBuilders
Определения DayZAnimEventMaps.c:75
string m_parameterName
Определения DayZAnimEventMaps.c:74
string m_tableCategoryName
Определения DayZAnimEventMaps.c:73
proto native CGame GetGame()
class AbstractSoundScene SoundObjectBuilder(SoundParams soundParams)
proto native int Hash()
Returns hash of string.

Перекрестные ссылки CGame::ConfigGetChildName(), CGame::ConfigGetChildrenCount(), CGame::ConfigGetText(), CGame::ConfigGetTextArray(), AnimSoundObjectBuilderBank::GetBuilder(), GetGame(), AnimSoundObjectBuilderBank::GetInstance(), string::Hash(), m_parameterName, m_soundBuilders, m_tableCategoryName, path и SoundObjectBuilder().

Используется в GetActionTable(), GetBuilder() и GetImpactTable().