Beispiel #1
0
 /// <summary>
 /// Sets the vehicles bumper damage level
 /// </summary>
 /// <param name="vehicle">The vehicle</param>
 /// <param name="bumper">The bumper (Front/Rear)</param>
 /// <param name="damageLevel">The Bumper damage level</param>
 public static void SetBumperDamageLevel(this IVehicle vehicle, VehicleBumper bumper,
                                         VehicleBumperDamage damageLevel) => vehicle.SetBumperDamageLevel((byte)bumper, (byte)damageLevel);
Beispiel #2
0
 public static Task SetBumperDamageLevelExtAsync(this IVehicle vehicle, VehicleBumper bumper,
                                                 VehicleBumperDamage bumperDamage) =>
 AltVAsync.Schedule(() => vehicle.SetBumperDamageLevelExt(bumper, bumperDamage));