OrdersForFrame() public méthode

public OrdersForFrame ( World world, int frame ) : IEnumerable
world World
frame int
Résultat IEnumerable
Exemple #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()));
        }
Exemple #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()));
        }
Exemple #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));
 }