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())); }
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())); }
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)); }