Beispiel #1
0
 /// <summary>
 /// Creates a new instance of StraightPipe class.
 /// </summary>
 /// <param name="orientation">Orientation of this straight pipe it is representing.</param>
 public StraightPipe(StraightPipeOrientation orientation)
 {
     this.orientation = orientation;
 }
Beispiel #2
0
 /// <summary>
 /// Creates straight pipe.
 /// </summary>
 /// <param name="orientation">The orientation of the desired straight pipe.</param>
 /// <returns>Newly created straight pipe if possible, otherwise null.</returns>
 public IStraightPipeElement CreateStraightPipe(StraightPipeOrientation orientation)
 {
     return ComponentRegistry.TryRegisterComponent<IStraightPipeElement>(this.Site, new StraightPipe(orientation));
 }