Remove disposal tubes component references and ECS some of it (#15188)
This commit is contained in:
@@ -3,13 +3,11 @@ using Content.Server.Disposal.Tube.Components;
|
||||
using Content.Shared.Body.Components;
|
||||
using Content.Shared.Item;
|
||||
using Robust.Shared.Containers;
|
||||
using Robust.Shared.Physics;
|
||||
using Robust.Shared.Physics.Components;
|
||||
using Robust.Shared.Physics.Systems;
|
||||
|
||||
namespace Content.Server.Disposal.Unit.Components
|
||||
{
|
||||
// TODO: Add gas
|
||||
[RegisterComponent]
|
||||
public sealed class DisposalHolderComponent : Component, IGasMixtureHolder
|
||||
{
|
||||
@@ -31,7 +29,7 @@ namespace Content.Server.Disposal.Unit.Components
|
||||
public float TimeLeft { get; set; }
|
||||
|
||||
[ViewVariables]
|
||||
public IDisposalTubeComponent? PreviousTube { get; set; }
|
||||
public DisposalTubeComponent? PreviousTube { get; set; }
|
||||
|
||||
[ViewVariables]
|
||||
public Direction PreviousDirection { get; set; } = Direction.Invalid;
|
||||
@@ -40,7 +38,7 @@ namespace Content.Server.Disposal.Unit.Components
|
||||
public Direction PreviousDirectionFrom => (PreviousDirection == Direction.Invalid) ? Direction.Invalid : PreviousDirection.GetOpposite();
|
||||
|
||||
[ViewVariables]
|
||||
public IDisposalTubeComponent? CurrentTube { get; set; }
|
||||
public DisposalTubeComponent? CurrentTube { get; set; }
|
||||
|
||||
// CurrentDirection is not null when CurrentTube isn't null.
|
||||
[ViewVariables]
|
||||
|
||||
Reference in New Issue
Block a user