Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Vehicle"/> class.
 /// </summary>
 protected Vehicle()
 {
     _parts = null;
     _seats = null;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Vehicle"/> class, specifying its unique instance identifier and template.
 /// </summary>
 /// <param name="instanceId">The unique instance identifier.</param>
 /// <param name="template">The template to use.</param>
 protected Vehicle(ulong instanceId, [NotNull] IVehicleTemplate template) : base(instanceId, template)
 {
     _parts = new VehiclePartCollection();
     _seats = new VehicleSeatCollection();
 }