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; }
public BasePartMutable(BasePart item) { BasePartAsset = item.BasePartAsset; BasePartId = item.BasePartId; InstanceId = item.InstanceId; }
public void UpdateBase(BasePart newBase) { baseUpdater(newBase); }