Example #1
0
 public AssetPart(Guid partId, BasePart basePart, Action <BasePart> baseUpdater)
 {
     if (baseUpdater == null)
     {
         throw new ArgumentNullException(nameof(baseUpdater));
     }
     if (partId == Guid.Empty)
     {
         throw new ArgumentException(@"A part Id cannot be empty.", nameof(partId));
     }
     PartId           = partId;
     Base             = basePart;
     this.baseUpdater = baseUpdater;
 }
Example #2
0
 public BasePartMutable(BasePart item)
 {
     BasePartAsset = item.BasePartAsset;
     BasePartId    = item.BasePartId;
     InstanceId    = item.InstanceId;
 }
Example #3
0
 public void UpdateBase(BasePart newBase)
 {
     baseUpdater(newBase);
 }