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

◆ EffectUnregister()

static void SEffectManager::EffectUnregister ( int id)
inlinestaticprotected

Unregisters Effect in SEffectManager.

Заметки
Will automatically occur on stop when the Effect is AutoDestroy
ID can be gotten from the Effect by calling Effect.GetID
Generic Play methods will also return the ID
Аргументы
idint The ID of the Effect to unregister

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

370 {
371 if (m_IsCleanup)
372 return; // No error needed, since it will have been unregistered anyways after cleanup is finished
373
374 Effect effect;
375 if ( m_EffectsMap.Find(id, effect) )
376 {
377 effect.Event_OnUnregistered();
378 m_EffectsMap.Remove(id);
379 }
380
381 if ( m_FreeEffectIDs.Find(id) == -1 )
382 {
383 m_FreeEffectIDs.Insert(id);
384 }
385 }
void Effect()
ctor
Определения Effect.c:70
static ref array< int > m_FreeEffectIDs
Static array of IDs that were previously used, but freed up by unregistering.
Определения EffectManager.c:10
static ref map< int, ref Effect > m_EffectsMap
Static map of all registered effects <id, Effect>
Определения EffectManager.c:8
static bool m_IsCleanup
Bool to check whether Cleanup is happening, which means that the maps should no longer be accessed.
Определения EffectManager.c:16

Перекрестные ссылки Effect(), m_EffectsMap, m_FreeEffectIDs и m_IsCleanup.

Используется в EffectUnregisterEx() и ~Effect().