Canister fixes and rework (#4266)
* Kills PipeNode ConnectToContainedEntities and EnvironmentalAir with fire. * Reaction IGasMixtureHolder is nullable. * Reworks canisters * Adds PortablePipeNode and PortPipeNode, which connect to each other.
This commit is contained in:
committed by
GitHub
parent
077f158dda
commit
d8e353742c
23
Content.Server/NodeContainer/Nodes/PortPipeNode.cs
Normal file
23
Content.Server/NodeContainer/Nodes/PortPipeNode.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using System.Collections.Generic;
|
||||
using Robust.Shared.Serialization.Manager.Attributes;
|
||||
|
||||
namespace Content.Server.NodeContainer.Nodes
|
||||
{
|
||||
[DataDefinition]
|
||||
public class PortPipeNode : PipeNode
|
||||
{
|
||||
public override IEnumerable<Node> GetReachableNodes()
|
||||
{
|
||||
foreach (var node in PipesInTile())
|
||||
{
|
||||
if (node is PortablePipeNode)
|
||||
yield return node;
|
||||
}
|
||||
|
||||
foreach (var node in base.GetReachableNodes())
|
||||
{
|
||||
yield return node;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user