DayZ 1.27
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 строка 400

401 {
402 int return_id;
403
404 if (m_FreeEffectIDs.Count() > 0)
405 {
406 return_id = m_FreeEffectIDs.Get(0);
407 m_FreeEffectIDs.Remove(0);
408 }
409 else
410 {
411 return_id = m_HighestFreeEffectID;
413 }
414
415 return return_id;
416 }
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().