Esempio n. 1
0
            public static void Postfix()
            {
                VisibilityCacheGate.ExitGate();

                Utils.CheckExitCounter($"Fewer calls made to ExitGate() when reaches AttackDirector.OnAttackSequenceEnd().\n", _counter);
                RTPFLogger.Debug?.Write($"Exit visibility cache gate in {typeof(H_OnAttackSequenceEnd).FullName}:{nameof(Postfix)}\n");
            }
            public static void Postfix()
            {
                _hasEntered = false;
                VisibilityCacheGate.ExitGate();

                Utils.CheckExitCounter($"Fewer calls made to ExitGate() when reaches ActorMovementSequence.CompleteMove().\n", _counter);
                RTPFLogger.Debug?.Write($"Exit visibility cache gate in {typeof(H_CompleteMove).FullName}: {nameof(Postfix)}\n");
            }
Esempio n. 3
0
            public static void Postfix()
            {
                VisibilityCacheGate.ExitGate();
                GateActive = false;

                Utils.CheckExitCounter($"Fewer calls made to ExitGate() when reaches {typeof(H_ReapplyAllEffects).FullName}:{nameof(Postfix)}.\n", _counter);
                RTPFLogger.Debug?.Write($"Exit visibility cache gate in {typeof(H_ReapplyAllEffects).FullName}:{nameof(Postfix)}\n");
            }
        public static void Postfix(AbstractActor __instance)
        {
            VisibilityCacheGate.ExitGate();
            GateActive = false;

            int exitCounter = VisibilityCacheGate.GetCounter;

            if (exitCounter < counter)
            {
                RTPFLogger.Debug?.Write($"Reset or unsymmetrical larger number of ExitGate() are call.");
            }
            else if (exitCounter > counter)
            {
                RTPFLogger.Error?.Write($"Fewer calls to ExitGate() than EnterGate().");
            }
        }