예제 #1
0
 public VehicleDoorStateChangedArgs(Vehicle vehicle, VehicleDoor door, VehicleDoorState state, bool spawnFlyingComponent)
 {
     this.Vehicle = vehicle;
     this.Door    = door;
     this.State   = state;
     this.SpawnFlyingComponent = spawnFlyingComponent;
 }
예제 #2
0
 public static Task SetDoorStateAsync(this IVehicle vehicle, VehicleDoor door, VehicleDoorState state) =>
 AltVAsync.Schedule(() => vehicle.SetDoorStateExt(door, state));
예제 #3
0
 /// <summary>
 /// Sets a vehicles door to a state
 /// </summary>
 /// <param name="vehicle">The vehicle</param>
 /// <param name="door">The door</param>
 /// <param name="state">The state</param>
 public static void SetDoorState(this IVehicle vehicle, VehicleDoor door, VehicleDoorState state) =>
 vehicle.SetDoorState((byte)door, (byte)state);