private void ConstructTimeline(PlayerSpecificLog player) { slider_time.Maximum = Convert.ToInt32(player.LogPlayerLogoutList[0].DateTimeOffset.Subtract(player.LogPlayerCreateList[0].Date).TotalSeconds); slider_time.Value = slider_time.Maximum; MapControl.matchStartTime = GetMatchStartTime(player.LogPlayerCreateList); MapControl.PlaneDepartureTime = GetPlaneDeparture(telemetryData); }
private void loadEvents(PlayerSpecificLog list, List <Marker> markers) { try { foreach (var pos in list.LogVehicleLeaveList) { int picture = -1; switch (pos.Vehicle.vehicleID) { case VehicleId.DummyTransportAircraft_C: picture = 1; break; case VehicleId.ParachutePlayer_C: picture = 3; break; default: picture = 2; break; } if (picture == -1) { continue; } Marker m = null; if (picture == 1) { m = new Marker(pos.Player.Location.X, pos.Player.Location.Y, true, picture, pos.DateTimeOffset, "Leaving Plane", "user left plane for parachuting", 200, Marker.Eventtype.Plane_leaving); } else if (picture == 3) { m = new Marker(pos.Player.Location.X, pos.Player.Location.Y, true, picture, pos.DateTimeOffset, "Leaving Parachuting", "user left Parachute for walking", 200, Marker.Eventtype.Plane_leaving); } else if (picture == 2) { m = new Marker(pos.Player.Location.X, pos.Player.Location.Y, true, picture, pos.DateTimeOffset, "Leaving Vehicle", "user left vehicle for walking", 200, Marker.Eventtype.Plane_leaving); } markers.Add(m); } foreach (var item in list.LogItemUseList) { if (item.UsedItem.ItemID.Contains("Item_Boost_")) { Marker m = new Marker(item.Player.Location.X, item.Player.Location.Y, true, 4, item.DateTimeOffset, "Player used boost item" + item.UsedItem.ItemID, "player used boost item", 200, Marker.Eventtype.Boosting); markers.Add(m); } else if (item.UsedItem.ItemID.Contains("Item_Heal_")) { Marker m = new Marker(item.Player.Location.X, item.Player.Location.Y, true, 7, item.DateTimeOffset, "Player used heal item : " + item.UsedItem.ItemID, "player used boost item", 200, Marker.Eventtype.Heal); markers.Add(m); } } } catch (Exception ex) { MessageBox.Show(ex.Message); } }
static void APISearchFunction(APITelemetry telemetry, string AccountID) { PlayerSpecificLog playerSpecificLog = telemetry.GetPlayerSpecificLog(AccountID); foreach (LogPlayerKill playerkill in playerSpecificLog.LogPlayerKillList) { Console.WriteLine(playerkill.Killer.PUBGName + " killed " + playerkill.Victim.PUBGName); } foreach (LogVehicleLeave leftcar in playerSpecificLog.LogVehicleLeaveList) { Console.WriteLine(leftcar.Player.PUBGName + " left " + leftcar.Vehicle.vehicleID + " at " + leftcar.Player.Location.X + " " + leftcar.Player.Location.Y + " " + leftcar.Player.Location.Z); } }