Dayz 1.25
Dayz Code Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс SoundLookupTable

Закрытые члены

void SoundLookupTable ()
 
void InitTable (string tableCategoryName, string parameterName)
 
void LoadTable (string soundLookupTableName)
 
SoundObjectBuilder GetSoundBuilder (int parameterHash)
 
void AttachmentSoundLookupTable ()
 
void ImpactSoundLookupTable ()
 

Закрытые данные

string m_tableCategoryName
 
string m_parameterName
 
ref map< int, ref array< SoundObjectBuilder > > m_soundBuilders
 

Подробное описание

Конструктор(ы)

◆ SoundLookupTable()

void SoundLookupTable ( )
inlineprivate
5 {
7 }
Definition EntityAI.c:95
ref map< int, ref array< SoundObjectBuilder > > m_soundBuilders
Definition DayZAnimEventMaps.c:75

Перекрестные ссылки m_soundBuilders.

Методы

◆ AttachmentSoundLookupTable()

void AttachmentSoundLookupTable ( )
inlineprivate
90 {
91 InitTable("CfgAttachmentSoundTables", "category");
92 }
void InitTable(string tableCategoryName, string parameterName)
Definition DayZAnimEventMaps.c:9

Перекрестные ссылки InitTable().

◆ GetSoundBuilder()

SoundObjectBuilder GetSoundBuilder ( int parameterHash)
inlineprivate
54 {
56
57 if(soundObjects == NULL || soundObjects.Count() == 0)
58 {
59 return NULL;
60 }
61 else if (soundObjects.Count() == 1)
62 {
63 return soundObjects.Get(0);
64 }
65 else
66 {
67 int index = Math.RandomInt(0, soundObjects.Count());
68 return soundObjects.Get(index);
69 }
70 }
Definition EnMath.c:7
static proto int RandomInt(int min, int max)
Returns a random int number between and min [inclusive] and max [exclusive].

Перекрестные ссылки m_soundBuilders и Math::RandomInt().

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

◆ ImpactSoundLookupTable()

void ImpactSoundLookupTable ( )
inlineprivate
119 {
120 InitTable("CfgImpactSoundTables", "surface");
121 }

Перекрестные ссылки InitTable().

◆ InitTable()

void InitTable ( string tableCategoryName,
string parameterName )
inlineprivate
10 {
13 }
string m_tableCategoryName
Definition DayZAnimEventMaps.c:73
string m_parameterName
Definition DayZAnimEventMaps.c:74

Перекрестные ссылки m_parameterName и m_tableCategoryName.

Используется в AttachmentSoundLookupTable(), ImpactSoundLookupTable(), ImpactSoundLookupTable(), PlayerVoiceLookupTable() и SoundLookupTable().

◆ LoadTable()

void LoadTable ( string soundLookupTableName)
inlineprivate
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;
30
32 GetGame().ConfigGetTextArray(soundClassPath + "soundSets", soundSetNames);
33
34 //TODO create SoundObject for every entry, save in Game?
36 for(int j = 0; j < soundSetNames.Count(); j++)
37 {
40
43 }
44
45 if(soundObjectBuilders.Count() > 0)
46 {
47 //Print("SoundLookupTable::LoadTable: path: " + path + " param:" + parameter + " param#:" + parameter.Hash() + " objBuildersCount: " + soundObjectBuilders.Count());
49 }
50 }
51 }
string path
Definition OptionSelectorMultistate.c:135
Definition DayZAnimEventMaps.c:134
static AnimSoundObjectBuilderBank GetInstance()
Definition DayZAnimEventMaps.c:141
Definition Sound.c:46
proto native CGame GetGame()

Перекрестные ссылки GetGame(), AnimSoundObjectBuilderBank::GetInstance(), m_parameterName, m_soundBuilders, m_tableCategoryName и path.

Поля

◆ m_parameterName

string m_parameterName
private

Используется в InitTable() и LoadTable().

◆ m_soundBuilders

ref map<int, ref array<SoundObjectBuilder> > m_soundBuilders
private

Используется в GetSoundBuilder(), LoadTable() и SoundLookupTable().

◆ m_tableCategoryName

string m_tableCategoryName
private

Используется в InitTable() и LoadTable().


Объявления и описания членов класса находятся в файле: