Beispiel #1
0
            public static void Postfix()
            {
                bool error = false;

                if (AbstractActor_HandleDeath.GateActive)
                {
                    error = true;
                    RTPFLogger.Error?.Write($"Something has gone wrong in handling actor death, resetting VisibilityCacheGate.");
                }

                if (H_AuraActorBody.GateActive)
                {
                    error = true;
                    RTPFLogger.Error?.Write(string.Format(ACTIVE_GATE, nameof(H_AuraActorBody)));
                }

                if (H_EffectManager.H_OnRoundEnd.GateActive)
                {
                    error = true;
                    RTPFLogger.Error?.Write(string.Format(ACTIVE_GATE, nameof(H_EffectManager.H_OnRoundEnd)));
                }

                if (error)
                {
                    VisibilityCacheGate.ExitAll();
                }
            }
Beispiel #2
0
        public static void Postfix()
        {
            if (EWState.InBatchProcess)
            {
                Mod.Log.Error?.Write($"Something has gone wrong in refreshing visibility cache, resetting.");
                EWState.ResetCache();
            }

            if (AbstractActor_HandleDeath.GateActive)
            {
                Mod.Log.Error?.Write($"Something has gone wrong in handling actor death, resetting VisibilityCacheGate.");
                VisibilityCacheGate.ExitAll();
            }
        }