/// <inheritdoc /> public void Reset() { Common.Reset(); PartialOne.Reset(); PartialTwo.Reset(); PartialThree.Reset(); Modifiers.Reset(); }
/// <inheritdoc /> public void CopyFrom(IPatch patch) { if (patch is Patch p) { Common.CopyFrom(p.Common); PartialOne.CopyFrom(p.PartialOne); PartialTwo.CopyFrom(p.PartialTwo); PartialThree.CopyFrom(p.PartialThree); Modifiers.CopyFrom(p.Modifiers); } else { throw new NotSupportedException("Copying from that type is not supported"); } }