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

◆ OnSymptomExit()

void SymptomManager::OnSymptomExit ( SymptomBase Symptom,
int uid )
inlineprivate

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

355 {
356 bool is_primary;
357 if ( Symptom )
358 {
359 is_primary = Symptom.IsPrimary();
360 DecreaseSymptomCount(Symptom.GetType());
361 }
362
363 if (m_SymptomsUIDs.Contains(uid))
364 m_SymptomsUIDs.Remove(uid);
365 else
366 Debug.LogError("Symptom with this UID does not exist", "PlayerSymptoms");
367
368 if (is_primary)
369 {
370 for (int i = 0; i < m_SymptomQueuePrimary.Count(); i++)
371 {
372 if ( m_SymptomQueuePrimary.Get(i) == Symptom )
373 {
374 m_SymptomQueuePrimary.RemoveOrdered(i);
375 break;
376 }
377 }
378 }
379 else
380 {
381 for (i = 0; i < m_SymptomQueueSecondary.Count(); i++)
382 {
383 if (m_SymptomQueueSecondary.Get(i) == Symptom)
384 {
385 m_SymptomQueueSecondary.RemoveOrdered(i);
386 break;
387 }
388 }
389 }
391 m_Player.SetActivePrimarySymptomID(0);
392
393 #ifdef DIAG_DEVELOPER
394 if ( GetGame() ) SendServerDebugToClient();
395 #endif
396 }
void Debug()
Определения UniversalTemperatureSource.c:349
bool IsPrimary()
Определения StateBase.c:141
int GetType()
Определения StateBase.c:100
void DecreaseSymptomCount(int symptom_id)
Определения StateManager.c:425
PlayerBase m_Player
Определения StateManager.c:49
ref array< ref SymptomBase > m_SymptomQueueSecondary
Определения StateManager.c:54
int m_ActiveSymptomIndexPrimary
Определения StateManager.c:65
ref array< ref SymptomBase > m_SymptomQueuePrimary
Определения StateManager.c:53
ref map< int, SymptomBase > m_SymptomsUIDs
Определения StateManager.c:56
proto native CGame GetGame()

Перекрестные ссылки DecreaseSymptomCount(), GetGame(), SymptomBase::GetType(), SymptomBase::IsPrimary(), Debug::LogError(), m_ActiveSymptomIndexPrimary, m_Player, m_SymptomQueuePrimary, m_SymptomQueueSecondary и m_SymptomsUIDs.