Пример #1
0
 public static void SetPresence(TelemetryData data)
 {
     discordClient.SetPresence(new RichPresence()
     {
         Details = VehicleDB.Instance.GetVehicle(data.CarOrdinal).GetVehicleInfo(),
         State   = $"[{data.CarClass.ToString()} | {data.CarPI}] - {data.GetMPH()} mph",
         Assets  = new Assets()
         {
             LargeImageKey = "fm"
         }
     });
 }
Пример #2
0
 public static void SetPresence(TelemetryData data)
 {
     discordClient.SetPresence(new RichPresence()
     {
         Details    = VehicleDB.Instance.GetVehicle(data.CarOrdinal).GetVehicleInfo(),
         State      = $"[{data.CarClass.ToString()} | {data.CarPI}] - {data.GetMPH()} mph",
         Timestamps = elapsedTime,
         Assets     = new Assets()
         {
             LargeImageKey = "forza-horizon-4-1024",
             SmallImageKey = "h4-small"
         }
     });
 }