Cleanup method to properly clean up the static data.
528 {
529
531 return;
532
534
535
537 {
540
543 }
544
545
547
548
549 #ifdef DEVELOPER
550 Print(
"--- SEffectManager Cleanup dump - Begin ------------------------");
552 #endif
553
554
555
557 {
558 eff.Event_OnUnregistered();
559 #ifdef SFXM_DUMP
560 Print(
string.Format(
"%1 :: %2 :: %3", eff,
typename.EnumToString(
EffectType, eff.GetEffectType()), eff.GetDebugName() ));
561 #endif
562 }
563
565 {
566 effecter.Delete();
567 }
568
569 #ifdef DEVELOPER
570 Print(
"--- SEffectManager Cleanup dump - End --------------------------");
571 #endif
572
573
576
577
581 }
EffectType
Enum to determine what type of effect the Effect is.
static ref map< int, EffecterBase > m_EffectersMap
static ref ScriptInvoker Event_OnFrameUpdate
Static invoker for the SEffectManager.Event_OnFrameUpdate called form MissionGameplay....
static ref map< int, ref Effect > m_EffectsMap
Static map of all registered effects <id, Effect>
static int m_HighestFreeEffectID
Counter for quickly getting the next ID if FreeEffectIDs array is empty.
static bool m_IsCleanup
Bool to check whether Cleanup is happening, which means that the maps should no longer be accessed.
static bool m_IsInitialized
Bool to check whether Init was called.
static ref map< string, ref SoundParams > m_ParamsMap
Static map of cached sound params, to prevent having to recreate them.
proto void Print(void var)
Prints content of variable to console/log.