Change component tests to not use stationstation (#1963)
This commit is contained in:
@@ -27,15 +27,16 @@ namespace Content.Server.GameObjects.Components.NodeContainer.NodeGroups
|
||||
[ViewVariables]
|
||||
private readonly List<PipeNode> _pipes = new List<PipeNode>();
|
||||
|
||||
[ViewVariables]
|
||||
private IGridAtmosphereComponent _gridAtmos;
|
||||
[ViewVariables] private AtmosphereSystem _atmosphereSystem;
|
||||
|
||||
[ViewVariables] private IGridAtmosphereComponent GridAtmos => _atmosphereSystem.GetGridAtmosphere(GridId);
|
||||
|
||||
public override void Initialize(Node sourceNode)
|
||||
{
|
||||
base.Initialize(sourceNode);
|
||||
_gridAtmos = EntitySystem.Get<AtmosphereSystem>()
|
||||
.GetGridAtmosphere(GridId);
|
||||
_gridAtmos?.AddPipeNet(this);
|
||||
|
||||
_atmosphereSystem = EntitySystem.Get<AtmosphereSystem>();
|
||||
GridAtmos?.AddPipeNet(this);
|
||||
}
|
||||
|
||||
public void Update()
|
||||
@@ -88,7 +89,7 @@ namespace Content.Server.GameObjects.Components.NodeContainer.NodeGroups
|
||||
|
||||
private void RemoveFromGridAtmos()
|
||||
{
|
||||
_gridAtmos.RemovePipeNet(this);
|
||||
GridAtmos?.RemovePipeNet(this);
|
||||
}
|
||||
|
||||
private class NullPipeNet : IPipeNet
|
||||
|
||||
Reference in New Issue
Block a user