示例#1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Vehicle"/> class.
 /// </summary>
 protected Vehicle()
 {
     _parts = null;
     _seats = null;
 }
示例#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();
 }