Exemplo n.º 1
0
 /// <summary>
 /// Creates a new instance of EdgePipe class.
 /// </summary>
 /// <param name="orientation">Orientation of this edged pipe it is representing.</param>
 public EdgePipe(EdgePipeOrientation orientation)
 {
     this.orientation = orientation;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Creates edged pipe.
 /// </summary>
 /// <param name="orientation">The orientation of the desired edged pipe.</param>
 /// <returns>Newly created edged pipe if possible, otherwise null.</returns>
 public IEdgePipeElement CreateEdgePipe(EdgePipeOrientation orientation)
 {
     return ComponentRegistry.TryRegisterComponent<IEdgePipeElement>(this.Site, new EdgePipe(orientation));
 }