public VehicleWheel this[int index]
        {
            get
            {
                VehicleWheel vehicleWheel = null;

                if (!_vehicleWheels.TryGetValue(index, out vehicleWheel))
                {
                    vehicleWheel = new VehicleWheel(_owner, index);
                    _vehicleWheels.Add(index, vehicleWheel);
                }

                return(vehicleWheel);
            }
        }
示例#2
0
 public void BurstTire(VehicleWheel wheel)
 {
     Function.Call(Natives.BURST_CAR_TYRE, m_handle, (int)wheel);
 }
示例#3
0
 public bool IsTireBurst(VehicleWheel wheel)
 {
     return(Function.Call <bool>(Natives.IS_CAR_TYRE_BURST, m_handle, (int)wheel));
 }