DayZ 1.30
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 строка 378

379 {
380 if (m_IsCleanup)
381 return; // No error needed, since it will have been unregistered anyways after cleanup is finished
382
383 Effect effect;
384 if ( m_EffectsMap.Find(id, effect) )
385 {
386 effect.Event_OnUnregistered();
387 m_EffectsMap.Remove(id);
388 }
389
390 if ( m_FreeEffectIDs.Find(id) == -1 )
391 {
392 m_FreeEffectIDs.Insert(id);
393 }
394 }
void Effect()
ctor
Определения Effect.c:72
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().