OrdersForFrame() public method

public OrdersForFrame ( World world, int frame ) : IEnumerable
world World
frame int
return IEnumerable
示例#1
0
        void OutOfSync(int frame, int index)
        {
            var orders = frameData.OrdersForFrame(world, frame);

            // Invalid index
            if (index >= orders.Count())
            {
                OutOfSync(frame);
            }

            throw new InvalidOperationException("Out of sync in frame {0}.\n {1}".F(frame, orders.ElementAt(index).Order.ToString()));
        }
示例#2
0
        void OutOfSync(int frame, int index)
        {
            var orders = frameData.OrdersForFrame(World, frame);

            // Invalid index
            if (index >= orders.Count())
            {
                OutOfSync(frame);
            }

            throw new InvalidOperationException("Out of sync in frame {0}.\n {1}\n Compare syncreport.log with other players.".F(frame, orders.ElementAt(index).Order.ToString()));
        }
示例#3
0
 void OutOfSync(int frame)
 {
     syncReport.DumpSyncReport(frame, frameData.OrdersForFrame(World, frame));
     throw new InvalidOperationException("Out of sync in frame {0}.\n Compare syncreport.log with other players.".F(frame));
 }