Beispiel #1
0
 protected internal virtual void OnLapCompleted(MsgLapCompleted msg)
 {
 }
Beispiel #2
0
 protected override void OnLapCompleted(MsgLapCompleted msg)
 {
     PluginManager.Log(DateTime.Now.TimeOfDay.ToString() + "- OnLapCompleted: " + msg.CarId + ": " + TimeSpan.FromMilliseconds(msg.Laptime));
     DriverInfo driver;
     if (!PluginManager.TryGetDriverInfo(msg.CarId, out driver))
         PluginManager.Log("Error; car_id " + msg.CarId + " was not known by the PluginManager :(");
     else
     {
         SendDistance(driver, true);
         PluginManager.Log("LapCompleted by " + driver.DriverName + ": " + TimeSpan.FromMilliseconds(msg.Laptime));
         HandleClientActions(LiveDataServer.LapCompleted(CurrentSessionGuid, msg.CreationDate, msg.CarId, driver.DriverGuid, msg.Laptime, msg.Cuts, msg.GripLevel, ConvertLB(msg.Leaderboard)));
     }
 }