Show / Hide Table of Contents

Class CableDeviceNode

Type of node that connects to a CableNode below it.

Inheritance
System.Object
Node
CableDeviceNode
CableTerminalNode
Namespace: Content.Server.Power.Nodes
Assembly: Content.Server.dll
Syntax
public class CableDeviceNode : Node

Properties

| Improve this Doc View Source

Enabled

If disabled, this cable device will never connect.

Declaration
public bool Enabled { get; set; }
Property Value
Type Description
System.Boolean
Remarks

If you change this, you must manually call QueueReflood(Node) to update the node connections.

Methods

| 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
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾