DayZ 1.24
Loading...
Searching...
No Matches
DayZAnimEventMaps.c File Reference

Go to the source code of this file.

Classes

class  SoundLookupTable
 
class  AnimSoundObjectBuilderBank
 

Functions

class SoundLookupTable StepSoundLookupTable ()
 
void SoundLookupTable ()
 
void InitTable (string tableCategoryName, string parameterName)
 
void LoadTable (string soundLookupTableName)
 
SoundObjectBuilder GetSoundBuilder (int parameterHash)
 
void PlayerVoiceLookupTable ()
 
void SetNoiseParam (NoiseParams param)
 
NoiseParams GetNoiseParam ()
 
class ImpactSoundLookupTable extends SoundLookupTable ActionSoundLookupTable ()
 
void ImpactSoundLookupTable ()
 
class AnimSoundObjectBuilderBank AnimSoundLookupTableBank ()
 
void AnimSoundObjectBuilderBank ()
 
static AnimSoundObjectBuilderBank GetInstance ()
 
SoundObjectBuilder GetBuilder (string soundSetName)
 
SoundLookupTable GetStepTable (string tableName)
 
SoundLookupTable GetImpactTable (string tableName)
 
SoundLookupTable GetActionTable (string tableName)
 

Variables

string m_tableCategoryName
 
string m_parameterName
 
ref map< int, ref array< SoundObjectBuilder > > m_soundBuilders
 
class AttachmentSoundLookupTable extends SoundLookupTable m_NoiseParams
 
static ref AnimSoundObjectBuilderBank m_instance
 
autoptr map< int, ref SoundObjectBuilderm_pBuilders
 
autoptr map< int, ref SoundLookupTablem_pTables
 

Function Documentation

◆ ActionSoundLookupTable()

Definition at line 112 of file DayZAnimEventMaps.c.

123 {
124 InitTable("CfgActionsSoundTables", "category");
125 }
void InitTable(string tableCategoryName, string parameterName)

Referenced by GetActionTable().

◆ AnimSoundLookupTableBank()

class AnimSoundObjectBuilderBank AnimSoundLookupTableBank ( )

Definition at line 112 of file DayZAnimEventMaps.c.

176 {
178 }
autoptr map< int, ref SoundLookupTable > m_pTables

Referenced by GetInstance(), and EntityAI::InitImpactSoundData().

◆ AnimSoundObjectBuilderBank()

void AnimSoundLookupTableBank::AnimSoundObjectBuilderBank ( )

Definition at line 176 of file DayZAnimEventMaps.c.

176 {
178 }
179

References m_pTables.

◆ GetActionTable()

SoundLookupTable GetActionTable ( string tableName)

Definition at line 218 of file DayZAnimEventMaps.c.

219 {
220 int tableNameHash = tableName.Hash();
221
223 if (table == NULL)
224 {
226 table.LoadTable(tableName);
228 }
229 return table;
230 }
class ImpactSoundLookupTable extends SoundLookupTable ActionSoundLookupTable()

References ActionSoundLookupTable(), and m_pTables.

◆ GetBuilder()

SoundObjectBuilder AnimSoundLookupTableBank::GetBuilder ( string soundSetName)

Definition at line 191 of file DayZAnimEventMaps.c.

191 {
192 int tableNameHash = tableName.Hash();
193
195 if (table == NULL)
196 {
198 table.LoadTable(tableName);
200 }
201 return table;
202 }
203
205 {
206 int tableNameHash = tableName.Hash();
207
209 if (table == NULL)
210 {
SoundLookupTable GetImpactTable(string tableName)
class SoundLookupTable StepSoundLookupTable()
void ImpactSoundLookupTable()

References m_pTables, and StepSoundLookupTable().

◆ GetImpactTable()

SoundLookupTable GetImpactTable ( string tableName)

Definition at line 204 of file DayZAnimEventMaps.c.

205 {
206 int tableNameHash = tableName.Hash();
207
209 if (table == NULL)
210 {
212 table.LoadTable(tableName);
214 }
215 return table;
216 }

References ImpactSoundLookupTable(), and m_pTables.

◆ GetInstance()

static AnimSoundLookupTableBank GetInstance ( )
static

Definition at line 182 of file DayZAnimEventMaps.c.

182 {
183 if (m_instance == NULL)
185
186 return m_instance;
187 }
188
class AnimSoundObjectBuilderBank AnimSoundLookupTableBank()
static ref AnimSoundObjectBuilderBank m_instance

References AnimSoundLookupTableBank(), and m_instance.

◆ GetNoiseParam()

NoiseParams GetNoiseParam ( )

Definition at line 105 of file DayZAnimEventMaps.c.

106 {
107 return m_NoiseParams;
108 }
class AttachmentSoundLookupTable extends SoundLookupTable m_NoiseParams

References m_NoiseParams.

◆ GetSoundBuilder()

SoundObjectBuilder StepSoundLookupTable::GetSoundBuilder ( int parameterHash)

Definition at line 127 of file DayZAnimEventMaps.c.

130{
132 {
134 }
135
136
138 {
139 if (m_instance == NULL)
autoptr map< int, ref SoundObjectBuilder > m_pBuilders
static AnimSoundObjectBuilderBank GetInstance()
void AnimSoundObjectBuilderBank()

◆ GetStepTable()

SoundLookupTable GetStepTable ( string tableName)

Definition at line 190 of file DayZAnimEventMaps.c.

191 {
192 int tableNameHash = tableName.Hash();
193
195 if (table == NULL)
196 {
198 table.LoadTable(tableName);
200 }
201 return table;
202 }

◆ ImpactSoundLookupTable()

void ActionSoundLookupTable::ImpactSoundLookupTable ( )

Definition at line 123 of file DayZAnimEventMaps.c.

123 {
124 InitTable("CfgActionsSoundTables", "category");
125 }
126}

References SoundLookupTable::InitTable().

Referenced by GetImpactTable().

◆ InitTable()

void StepSoundLookupTable::InitTable ( string tableCategoryName,
string parameterName )

Definition at line 83 of file DayZAnimEventMaps.c.

84{
85 void AttachmentSoundLookupTable()
86 {
87 InitTable("CfgAttachmentSoundTables", "category");

◆ LoadTable()

void StepSoundLookupTable::LoadTable ( string soundLookupTableName)

Definition at line 89 of file DayZAnimEventMaps.c.

92{
94
96 {
97 InitTable("CfgVoiceSoundTables", "category");
98 }
99
101 {
103 }
104
106 {
107 return m_NoiseParams;
108 }
109}
110
111
113{
115 {
116 InitTable("CfgImpactSoundTables", "surface");
117 }
118}
119
121{
123 {
124 InitTable("CfgActionsSoundTables", "category");
125 }
void PlayerVoiceLookupTable()
void SetNoiseParam(NoiseParams param)
NoiseParams GetNoiseParam()
class NoiseSystem NoiseParams()
Definition Noise.c:15
void InitTable(string tableCategoryName, string parameterName)

◆ PlayerVoiceLookupTable()

◆ SetNoiseParam()

void SetNoiseParam ( NoiseParams param)

Definition at line 100 of file DayZAnimEventMaps.c.

101 {
103 }

References m_NoiseParams.

◆ SoundLookupTable()

void StepSoundLookupTable::SoundLookupTable ( )

Definition at line 78 of file DayZAnimEventMaps.c.

78 {
79 InitTable("CfgStepSoundTables", "surface");
80 }
81}

References SoundLookupTable::InitTable().

◆ StepSoundLookupTable()

class SoundLookupTable StepSoundLookupTable ( )

Definition at line 1 of file DayZAnimEventMaps.c.

78 {
79 InitTable("CfgStepSoundTables", "surface");
80 }

Referenced by DayZPlayerTypeStepSoundLookupTable::DayZPlayerTypeStepSoundLookupTableImpl(), and GetBuilder().

Variable Documentation

◆ m_instance

◆ m_NoiseParams

◆ m_parameterName

string m_parameterName
private

Definition at line 144 of file DayZAnimEventMaps.c.

◆ m_pBuilders

autoptr map<int, ref SoundObjectBuilder> m_pBuilders
private

Definition at line 214 of file DayZAnimEventMaps.c.

◆ m_pTables

◆ m_soundBuilders

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

Definition at line 145 of file DayZAnimEventMaps.c.

◆ m_tableCategoryName

string m_tableCategoryName
private

Definition at line 143 of file DayZAnimEventMaps.c.