Beispiel #1
0
 /// <summary>
 /// For use in the <code>MapObject.Find</code> method.
 /// Returns solids with displacements that are sewable with this one.
 /// </summary>
 /// <param name="obj">MapObject to test</param>
 /// <returns>True if the given object contains a sewable displacement.</returns>
 private bool HasSewableDisplacement(MapObject obj)
 {
     return((obj is Solid) && ((Solid)obj).Faces.OfType <Displacement>().Any(IsSewableTo));
 }
Beispiel #2
0
 public override void Unclone(MapObject o)
 {
     PasteBase(o, null, true);
 }
Beispiel #3
0
 /// <summary>
 /// Copies all the values of the provided object into this one, cloning children and faces.
 /// </summary>
 public abstract void Unclone(MapObject o);
Beispiel #4
0
 public override void Paste(MapObject o, IDGenerator generator)
 {
     PasteBase(o, generator);
 }
Beispiel #5
0
 /// <summary>
 /// Copies all the values of the provided object into this one, copying children and faces.
 /// </summary>
 public abstract void Paste(MapObject o, IDGenerator generator);