public static void Simulate()
        {
            TweakFramerate();
            ForeSight--;
            Frame frame = frames [LockstepManager.InfluenceFrameCount];

            if (frame.Commands.IsNotNull())
            {
                for (int i = 0; i < frame.Commands.Count; i++)
                {
                    Command com = frame.Commands [i];

                    LockstepManager.Execute(com);
                }
            }
            //frames[LockstepManager.InfluenceFrameCount] = null;
        }
Пример #2
0
        public static void Simulate()
        {
            if (FreeSimulate)
            {
                return;
            }
            TweakFramerate();
            ForeSight--;
            Frame frame = frames [LockstepManager.InfluenceFrameCount];

            if (frame.Commands.IsNotNull())
            {
                for (int i = 0; i < frame.Commands.Count; i++)
                {
                    Command com = frame.Commands [i];
                    LockstepManager.Execute(com);
                }
            }
            frames[LockstepManager.InfluenceFrameCount] = null;
            if (LockstepManager.InfluenceFrameCount == EndFrame)
            {
                FreeSimulate = true;
            }
        }