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

◆ GetFreeEffectID()

static int SEffectManager::GetFreeEffectID ( )
inlinestaticprotected

Helper function for EffectRegister to decide an Effect ID.

Возвращает
int A currently unused Effect ID

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

410 {
411 int return_id;
412
413 if (m_FreeEffectIDs.Count() > 0)
414 {
415 return_id = m_FreeEffectIDs.Get(0);
416 m_FreeEffectIDs.Remove(0);
417 }
418 else
419 {
420 return_id = m_HighestFreeEffectID;
422 }
423
424 return return_id;
425 }
static ref array< int > m_FreeEffectIDs
Static array of IDs that were previously used, but freed up by unregistering.
Определения EffectManager.c:10
static int m_HighestFreeEffectID
Counter for quickly getting the next ID if FreeEffectIDs array is empty.
Определения EffectManager.c:12

Перекрестные ссылки m_FreeEffectIDs и m_HighestFreeEffectID.

Используется в EffectRegister().