Exemplo n.º 1
0
 /// <inheritdoc />
 public void Reset()
 {
     Common.Reset();
     PartialOne.Reset();
     PartialTwo.Reset();
     PartialThree.Reset();
     Modifiers.Reset();
 }
Exemplo n.º 2
0
 /// <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");
     }
 }