Show / Hide Table of Contents

Class ConstructionGraphNode

Inheritance
System.Object
ConstructionGraphNode
Namespace: Content.Shared.Construction
Assembly: Content.Shared.dll
Syntax
public sealed class ConstructionGraphNode : object

Fields

| Improve this Doc View Source

DoNotReplaceInheritingEntities

Ignore requests to change the entity if the entity's current prototype inherits from specified replacement

Declaration
public bool DoNotReplaceInheritingEntities
Field Value
Type Description
System.Boolean
Remarks

When this bool is true and a construction node specifies that the current entity should be replaced with a new entity, if the current entity has an entity prototype which inherits from the replacement entity prototype, entity replacement will not occur. E.g., if an entity with the 'AirlockCommand' prototype was to be replaced with a new entity that had the 'Airlock' prototype, and 'DoNotReplaceInheritingEntities' was true, the entity would not be replaced because 'AirlockCommand' is derived from 'Airlock' This will largely be used for construction graphs which have removeable upgrades, such as hacking protections for airlocks, so that the upgrades can be removed and you can return to the last primary construction step without replacing the entity

| Improve this Doc View Source

TransformLogic

Declaration
public IGraphTransform[] TransformLogic
Field Value
Type Description
IGraphTransform[]

Properties

| Improve this Doc View Source

Actions

Declaration
public IReadOnlyList<IGraphAction> Actions { get; }
Property Value
Type Description
IReadOnlyList<IGraphAction>
| Improve this Doc View Source

Edges

Declaration
public IReadOnlyList<ConstructionGraphEdge> Edges { get; }
Property Value
Type Description
IReadOnlyList<ConstructionGraphEdge>
| Improve this Doc View Source

Entity

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

Name

Declaration
public string Name { get; }
Property Value
Type Description
System.String

Methods

| Improve this Doc View Source

GetEdge(String)

Declaration
public ConstructionGraphEdge GetEdge(string target)
Parameters
Type Name Description
System.String target
Returns
Type Description
ConstructionGraphEdge
| Improve this Doc View Source

GetEdgeIndex(String)

Declaration
public int? GetEdgeIndex(string target)
Parameters
Type Name Description
System.String target
Returns
Type Description
System.Nullable<System.Int32>
| Improve this Doc View Source

TryGetEdge(String, out ConstructionGraphEdge)

Declaration
public bool TryGetEdge(string target, out ConstructionGraphEdge edge)
Parameters
Type Name Description
System.String target
ConstructionGraphEdge edge
Returns
Type Description
System.Boolean
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾