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

◆ CanPlay()

bool GetSoundEventType::CanPlay ( )

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

131{
133 int m_Type;
134 int m_ID;
136 bool m_RequestDestroy;
137 string m_SoundSetNameRoot;
139 int m_Param;
140
141
142 void ~SoundEventBase()
143 {
145 }
146
147 //obsolete function, now possible to set a param
149 {
151 }
152
153 void Tick()
154 {
156 {
157 m_RequestDestroy = true;
158 }
159 }
160
162 {
164 {
165 return true;
166 }
167
168 return false;
169 }
170
171 bool IsDestroyRequested()
172 {
173 return m_RequestDestroy;
174 }
175
176 bool CanPlay()
177 {
178 return true;
179 }
180
181 bool Play()
182 {
183 return true;
184 }
185
186 void OnPlay(PlayerBase player);
187
188 void Stop()
189 {
191 {
192 m_SoundSetCallback.Stop();
193 }
194 }
195
196 int GetSoundEventID()
197 {
198 return m_ID;
199 }
200
202 {
203 return m_Type;
204 }
205
207 {
208 return m_SoundSetCallback;
209 }
210}
211
212class SoundEventHandler
213{
214 static int GetSoundEventType(int id) { return -1; }
215 //void OnTick(float delta_time) {}
216 bool PlayRequest(EPlayerSoundEventID id, bool sent_from_server = false) { return true; }
217 bool PlayRequestEx(EPlayerSoundEventID id, bool sent_from_server = false, int param = 0){ return true; };
218 int GetCurrentStateEventID() { return -1; }
219 int GetCurrentStateEventType() { return -1; }
220}
eBleedingSourceType m_Type
Определения BleedingSource.c:25
int m_ID
ID of effect, given by SEffectManager when registered (automatically done when playing through it)
Определения Effect.c:49
override int GetCurrentStateEventID()
Определения InfectedSoundEventHandler.c:38
override int GetCurrentStateEventType()
Определения InfectedSoundEventHandler.c:47
override bool PlayRequestEx(EPlayerSoundEventID id, bool sent_from_server=false, int param=0)
Определения PlayerSoundEventHandler.c:148
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:96
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