private static void STEP_CORRUPT(bool _isRewinding, bool _isFastForwarding)         //errors trapped by CPU_STEP
        {
            if (disableRTC)
            {
                return;
            }

            if (!_isRewinding)
            {
                StepActions.Execute();
            }

            if (_isRewinding || _isFastForwarding)
            {
                return;
            }

            CPU_STEP_Count++;

            bool autoCorrupt = CorruptCore.AutoCorrupt;
            long errorDelay  = CorruptCore.ErrorDelay;

            if (autoCorrupt && CPU_STEP_Count >= errorDelay)
            {
                CPU_STEP_Count = 0;
                BlastLayer bl = CorruptCore.GenerateBlastLayer((string[])RTCV.NetCore.AllSpec.UISpec["SELECTEDDOMAINS"]);
                if (bl != null)
                {
                    bl.Apply(false, true);
                }
            }
        }
예제 #2
0
        public static void STEP_CORRUPT(bool executeActions, bool performStep)
        {
            if (executeActions)
            {
                StepActions.Execute();
            }

            if (performStep)
            {
                CPU_STEP_Count++;

                bool autoCorrupt = RtcCore.AutoCorrupt;
                long errorDelay  = RtcCore.ErrorDelay;
                if (autoCorrupt && CPU_STEP_Count >= errorDelay)
                {
                    CPU_STEP_Count = 0;
                    BlastLayer bl = RtcCore.GenerateBlastLayer((string[])AllSpec.UISpec["SELECTEDDOMAINS"]);
                    if (bl != null)
                    {
                        bl.Apply(false, false);
                    }
                }
            }
        }