OrdersForFrame() public method

public OrdersForFrame ( World world, int frame ) : IEnumerable
world World
frame int
return IEnumerable
Ejemplo n.º 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()));
        }
Ejemplo n.º 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()));
        }
Ejemplo n.º 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));
 }