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

◆ ~SoundEventBase()

void GetSoundEventType::~SoundEventBase ( )

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

96{
98 int m_Type;
99 int m_ID;
101 bool m_RequestDestroy;
102 string m_SoundSetNameRoot;
104 int m_Param;
105
106 void ~SoundEventBase()
107 {
108 if (g_Game)
109 Stop();
110 }
111
112 //obsolete function, now possible to set a param
114 {
116 }
117
118 void Tick()
119 {
121 {
122 m_RequestDestroy = true;
123 }
124 }
125
127 {
129 {
130 return true;
131 }
132
133 return false;
134 }
135
136 bool IsDestroyRequested()
137 {
138 return m_RequestDestroy;
139 }
140
141 bool CanPlay()
142 {
143 return true;
144 }
145
146 bool Play()
147 {
148 return true;
149 }
150
151 void OnPlay(PlayerBase player);
152
153 void Stop()
154 {
156 {
157 m_SoundSetCallback.Stop();
158 }
159 }
160
161 int GetSoundEventID()
162 {
163 return m_ID;
164 }
165
167 {
168 return m_Type;
169 }
170
172 {
173 return m_SoundSetCallback;
174 }
175}
176
177class SoundEventHandler
178{
179 static int GetSoundEventType(int id) { return -1; }
180 //void OnTick(float delta_time) {}
181 bool PlayRequest(EPlayerSoundEventID id, bool sent_from_server = false) { return true; }
182 bool PlayRequestEx(EPlayerSoundEventID id, bool sent_from_server = false, int param = 0){ return true; };
183 bool StopRequest(EPlayerSoundEventID id, bool sent_from_server = false, int param = 0){ return true; };
184 int GetCurrentStateEventID() { return -1; }
185 int GetCurrentStateEventType() { return -1; }
186}
eBleedingSourceType m_Type
DayZGame g_Game
Определения DayZGame.c:4074
int m_ID
Определения DustKickupEffects.c:26
override int GetCurrentStateEventID()
Определения InfectedSoundEventHandler.c:38
override int GetCurrentStateEventType()
Определения InfectedSoundEventHandler.c:47
override bool StopRequest(EPlayerSoundEventID id, bool sent_from_server=false, int param=0)
Определения PlayerSoundEventHandler.c:200
override bool PlayRequestEx(EPlayerSoundEventID id, bool sent_from_server=false, int param=0)
Определения PlayerSoundEventHandler.c:150
EPlayerSoundEventID
Определения PlayerSoundEventHandler.c:3
EAnimPlayState PlayRequest()
Определения SmptAnimMeta.c:65
AbstractWave m_SoundSetCallback
Определения SoundEvents.c:86
AbstractWave GetSoundSetCallback()
Определения SoundEvents.c:160
bool IsSoundCallbackExist()
Определения SoundEvents.c:115
bool IsDestroyRequested()
Определения SoundEvents.c:125
bool CanPlay()
Определения SoundEvents.c:130
void ~SoundEventBase()
Определения SoundEvents.c:95
int m_SoundVoiceAnimEventClassID
Определения SoundEvents.c:89
int GetSoundEventType()
Определения SoundEvents.c:155
bool IsSkipForControlled()
Определения SoundEvents.c:102
bool m_RequestDestroy
Определения SoundEvents.c:90
int GetSoundEventID()
Определения SoundEvents.c:150
int m_Param
Определения SoundEvents.c:93
string m_SoundSetNameRoot
Определения SoundEvents.c:91
bool m_SkipForControlledCharacter
Определения SoundEvents.c:92
void Tick()
Определения SoundEvents.c:107
Определения PlayerBaseClient.c:2
bool Play()
Определения SoundEvents.c:135
void AbstractWave()
Определения Sound.c:167
void Stop()
Stops all elements this effect consists of.
Определения SoundEvents.c:142
void OnPlay()
Определения Sound.c:206