Exemplo n.º 1
0
 public AsyncVehicleRef(IVehicle vehicle)
 {
     if (vehicle == null)
     {
         this.vehicle = null;
     }
     else
     {
         lock (vehicle)
         {
             this.vehicle = vehicle.AddRef() ? vehicle : null;
         }
     }
 }
Exemplo n.º 2
0
 public VehicleRef(IVehicle vehicle)
 {
     this.vehicle = vehicle.AddRef() ? vehicle : null;
 }
Exemplo n.º 3
0
 public VehicleRef(IVehicle vehicle)
 {
     this.vehicle = vehicle.AddRef() ? vehicle : null;
     Alt.Module.CountUpRefForCurrentThread(vehicle);
 }