Ejemplo n.º 1
0
 /// <summary>
 /// Intializes a new <see cref="CloneCommand"/>
 /// </summary>
 /// <param name="corner1">One of the corners of the structure to clone</param>
 /// <param name="corner2">The oppesite corners of the structure to clone</param>
 /// <param name="location">The location to clone the structure to</param>
 /// <param name="masked">True if air blocks shouldn't be cloned. False if air blocks should be cloned</param>
 /// <param name="mode">The way to clone the structure</param>
 public CloneCommand(Vector corner1, Vector corner2, Vector location, bool masked, ID.BlockCloneWay mode)
 {
     Corner1  = corner1;
     Corner2  = corner2;
     Location = location;
     Masked   = masked;
     Mode     = mode;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Intializes a new <see cref="FilteredCloneCommand"/>
 /// </summary>
 /// <param name="corner1">One of the corners of the structure to clone</param>
 /// <param name="corner2">The oppesite corners of the structure to clone</param>
 /// <param name="location">The location to clone the structure to</param>
 /// <param name="filterBlock">The block to clone from one place to another</param>
 /// <param name="mode">The way to clone the structure</param>
 public FilteredCloneCommand(Vector corner1, Vector corner2, Vector location, Block filterBlock, ID.BlockCloneWay mode)
 {
     Corner1     = corner1;
     Corner2     = corner2;
     Location    = location;
     FilterBlock = filterBlock;
     Mode        = mode;
 }