/// <summary> /// Initializes a new instance of the <see cref="VehicleFactory"/> class. /// </summary> /// <param name="sampNatives">Natives which are needed for this factory.</param> /// <param name="vehiclesNatives">Natives to modify vehicle.</param> public VehicleFactory(ISampNatives sampNatives, IVehiclesNatives vehiclesNatives) { this.sampNatives = sampNatives; this.vehiclesNatives = vehiclesNatives; }
/// <summary> /// Initializes a new instance of the <see cref="Vehicle"/> class. /// </summary> /// <param name="id">Id for this vehicle.</param> /// <param name="entityRemoval">Delegate that should be used to remove this entity from the <see cref="IVehiclePool"/>.</param> /// <param name="vehiclesNatives">Natives which are needed for this entity.</param> public Vehicle(int id, IVehiclePool.RemoveEntityDelegate entityRemoval, IVehiclesNatives vehiclesNatives) : base(id) { this.entityRemoval = entityRemoval; this.vehiclesNatives = vehiclesNatives; }
/// <summary> /// Initializes a new instance of the <see cref="VehiclePool"/> class. /// </summary> /// <param name="vehicleFactory">Factory that creates vehicles.</param> /// <param name="vehiclesNatives">Natives needed for certain pool methods.</param> public VehiclePool(IVehicleFactory vehicleFactory, IVehiclesNatives vehiclesNatives) { this.vehicleFactory = vehicleFactory; this.vehiclesNatives = vehiclesNatives; }