Show / Hide Table of Contents

Class PipeNode

Connects with other PipeNodes whose PipeDirection correctly correspond.

Inheritance
System.Object
Node
PipeNode
PortablePipeNode
PortPipeNode
Implements
IGasMixtureHolder
IRotatableNode
Namespace: Content.Server.NodeContainer.Nodes
Assembly: Content.Server.dll
Syntax
public class PipeNode : Node, IGasMixtureHolder, IRotatableNode

Properties

| Improve this Doc View Source

Air

The gases in this pipe.

Declaration
public GasMixture Air { get; set; }
Property Value
Type Description
GasMixture
| Improve this Doc View Source

ConnectionsEnabled

Whether this node can connect to others or not.

Declaration
public bool ConnectionsEnabled { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

CurrentPipeDirection

The current pipe directions (accounting for rotation) Used to check if this pipe can connect to another pipe in a given direction.

Declaration
public PipeDirection CurrentPipeDirection { get; }
Property Value
Type Description
PipeDirection
| Improve this Doc View Source

RotationsEnabled

Declaration
public bool RotationsEnabled { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

Volume

Declaration
public float Volume { get; set; }
Property Value
Type Description
System.Single

Methods

| Improve this Doc View Source

AddAlwaysReachable(PipeNode)

Declaration
public void AddAlwaysReachable(PipeNode pipeNode)
Parameters
Type Name Description
PipeNode pipeNode
| Improve this Doc View Source

Connectable(IEntityManager, Nullable<TransformComponent>)

Declaration
public override bool Connectable(IEntityManager entMan, TransformComponent? xform = null)
Parameters
Type Name Description
IEntityManager entMan
System.Nullable<TransformComponent> xform
Returns
Type Description
System.Boolean
Overrides
Node.Connectable(IEntityManager, Nullable<TransformComponent>)
| Improve this Doc View Source

GetReachableNodes(TransformComponent, EntityQuery<NodeContainerComponent>, EntityQuery<TransformComponent>, MapGridComponent, IEntityManager)

Declaration
public override IEnumerable<Node> GetReachableNodes(TransformComponent xform, EntityQuery<NodeContainerComponent> nodeQuery, EntityQuery<TransformComponent> xformQuery, MapGridComponent grid, IEntityManager entMan)
Parameters
Type Name Description
TransformComponent xform
EntityQuery<NodeContainerComponent> nodeQuery
EntityQuery<TransformComponent> xformQuery
Robust.Shared.Map.Components.MapGridComponent grid
IEntityManager entMan
Returns
Type Description
IEnumerable<Node>
Overrides
Node.GetReachableNodes(TransformComponent, EntityQuery<NodeContainerComponent>, EntityQuery<TransformComponent>, MapGridComponent, IEntityManager)
| Improve this Doc View Source

Initialize(EntityUid, IEntityManager)

Declaration
public override void Initialize(EntityUid owner, IEntityManager entMan)
Parameters
Type Name Description
EntityUid owner
IEntityManager entMan
Overrides
Node.Initialize(EntityUid, IEntityManager)
| Improve this Doc View Source

OnAnchorStateChanged(IEntityManager, Boolean)

Declaration
public override void OnAnchorStateChanged(IEntityManager entityManager, bool anchored)
Parameters
Type Name Description
IEntityManager entityManager
System.Boolean anchored
Overrides
Node.OnAnchorStateChanged(IEntityManager, Boolean)
| Improve this Doc View Source

PipesInDirection(Vector2i, PipeDirection, MapGridComponent, EntityQuery<NodeContainerComponent>)

Gets the pipes from entities on the tile adjacent in a direction.

Declaration
protected IEnumerable<PipeNode> PipesInDirection(Vector2i pos, PipeDirection pipeDir, MapGridComponent grid, EntityQuery<NodeContainerComponent> nodeQuery)
Parameters
Type Name Description
Vector2i pos
PipeDirection pipeDir
Robust.Shared.Map.Components.MapGridComponent grid
EntityQuery<NodeContainerComponent> nodeQuery
Returns
Type Description
IEnumerable<PipeNode>
| Improve this Doc View Source

RemoveAlwaysReachable(PipeNode)

Declaration
public void RemoveAlwaysReachable(PipeNode pipeNode)
Parameters
Type Name Description
PipeNode pipeNode

Explicit Interface Implementations

| Improve this Doc View Source

IRotatableNode.RotateNode(MoveEvent)

Declaration
bool IRotatableNode.RotateNode(in MoveEvent ev)
Parameters
Type Name Description
MoveEvent ev
Returns
Type Description
System.Boolean

Implements

IGasMixtureHolder
IRotatableNode
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾