Fix disposal container names (#10646)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using Content.Server.Disposal.Unit.Components;
|
||||
using Content.Server.Disposal.Unit.Components;
|
||||
|
||||
namespace Content.Server.Disposal.Tube.Components
|
||||
{
|
||||
@@ -7,6 +7,8 @@ namespace Content.Server.Disposal.Tube.Components
|
||||
[ComponentReference(typeof(DisposalTubeComponent))]
|
||||
public sealed class DisposalBendComponent : DisposalTubeComponent
|
||||
{
|
||||
public override string ContainerId => "DisposalBend";
|
||||
|
||||
[DataField("sideDegrees")]
|
||||
private int _sideDegrees = -90;
|
||||
|
||||
|
||||
@@ -13,6 +13,7 @@ namespace Content.Server.Disposal.Tube.Components
|
||||
[Dependency] private readonly IEntityManager _entMan = default!;
|
||||
|
||||
private const string HolderPrototypeId = "DisposalHolder";
|
||||
public override string ContainerId => "DisposalEntry";
|
||||
|
||||
public bool TryInsert(DisposalUnitComponent from, IEnumerable<string>? tags = default)
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using System.Linq;
|
||||
using System.Linq;
|
||||
using Content.Server.Disposal.Unit.Components;
|
||||
using Robust.Shared.Random;
|
||||
|
||||
@@ -10,6 +10,8 @@ namespace Content.Server.Disposal.Tube.Components
|
||||
[ComponentReference(typeof(DisposalTubeComponent))]
|
||||
public class DisposalJunctionComponent : DisposalTubeComponent
|
||||
{
|
||||
public override string ContainerId => "DisposalJunction";
|
||||
|
||||
[Dependency] private readonly IEntityManager _entMan = default!;
|
||||
[Dependency] private readonly IRobustRandom _random = default!;
|
||||
|
||||
|
||||
@@ -14,6 +14,8 @@ namespace Content.Server.Disposal.Tube.Components
|
||||
[ComponentReference(typeof(DisposalTubeComponent))]
|
||||
public sealed class DisposalRouterComponent : DisposalJunctionComponent
|
||||
{
|
||||
public override string ContainerId => "DisposalRouter";
|
||||
|
||||
[Dependency] private readonly IEntityManager _entMan = default!;
|
||||
|
||||
[ViewVariables]
|
||||
|
||||
@@ -15,6 +15,8 @@ namespace Content.Server.Disposal.Tube.Components
|
||||
{
|
||||
[Dependency] private readonly IEntityManager _entMan = default!;
|
||||
|
||||
public override string ContainerId => "DisposalTagger";
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
private string _tag = "";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Content.Server.Disposal.Unit.Components;
|
||||
using Content.Server.Disposal.Unit.Components;
|
||||
|
||||
namespace Content.Server.Disposal.Tube.Components
|
||||
{
|
||||
@@ -9,6 +9,8 @@ namespace Content.Server.Disposal.Tube.Components
|
||||
[ComponentReference(typeof(DisposalTubeComponent))]
|
||||
public class DisposalTransitComponent : DisposalTubeComponent
|
||||
{
|
||||
public override string ContainerId => "DisposalTransit";
|
||||
|
||||
protected override Direction[] ConnectableDirections()
|
||||
{
|
||||
var rotation = IoCManager.Resolve<IEntityManager>().GetComponent<TransformComponent>(Owner).LocalRotation;
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace Content.Server.Disposal.Tube.Components
|
||||
{
|
||||
public abstract class DisposalTubeComponent : Component, IDisposalTubeComponent
|
||||
{
|
||||
public const string ContainerId = "disposal-tube";
|
||||
public virtual string ContainerId => "DisposalTube";
|
||||
|
||||
[Dependency] private readonly IEntityManager _entMan = default!;
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ namespace Content.Shared.Disposal.Components
|
||||
[NetworkedComponent]
|
||||
public abstract class SharedDisposalUnitComponent : Component
|
||||
{
|
||||
public const string ContainerId = "disposal-unit";
|
||||
public const string ContainerId = "DisposalUnit";
|
||||
|
||||
// TODO: Could maybe turn the contact off instead far more cheaply as farseer (though not box2d) had support for it?
|
||||
// Need to suss it out.
|
||||
|
||||
@@ -52,8 +52,7 @@
|
||||
- type: CollideOnAnchor
|
||||
- type: ContainerContainer
|
||||
containers:
|
||||
disposal-tube: !type:Container
|
||||
ents: []
|
||||
DisposalTube: !type:Container
|
||||
|
||||
- type: entity
|
||||
id: DisposalHolder
|
||||
@@ -61,6 +60,9 @@
|
||||
name: disposal holder
|
||||
components:
|
||||
- type: DisposalHolder
|
||||
- type: ContainerContainer
|
||||
containers:
|
||||
DisposalHolder: !type:Container
|
||||
|
||||
# Pipes
|
||||
|
||||
@@ -93,6 +95,9 @@
|
||||
- map: [ "pipe" ]
|
||||
state: conpipe-s
|
||||
- type: DisposalTransit
|
||||
- type: ContainerContainer
|
||||
containers:
|
||||
DisposalTransit: !type:Container
|
||||
- type: GenericVisualizer
|
||||
visuals:
|
||||
enum.DisposalTubeVisuals.VisualState:
|
||||
@@ -116,6 +121,9 @@
|
||||
- map: [ "pipe" ]
|
||||
state: conpipe-tagger
|
||||
- type: DisposalTagger
|
||||
- type: ContainerContainer
|
||||
containers:
|
||||
DisposalTagger: !type:Container
|
||||
- type: GenericVisualizer
|
||||
visuals:
|
||||
enum.DisposalTubeVisuals.VisualState:
|
||||
@@ -145,6 +153,9 @@
|
||||
- map: [ "pipe" ]
|
||||
state: conpipe-t
|
||||
- type: DisposalEntry
|
||||
- type: ContainerContainer
|
||||
containers:
|
||||
DisposalEntry: !type:Container
|
||||
- type: GenericVisualizer
|
||||
visuals:
|
||||
enum.DisposalTubeVisuals.VisualState:
|
||||
@@ -179,6 +190,9 @@
|
||||
- 0
|
||||
- -90
|
||||
- 180
|
||||
- type: ContainerContainer
|
||||
containers:
|
||||
DisposalRouter: !type:Container
|
||||
- type: GenericVisualizer
|
||||
visuals:
|
||||
enum.DisposalTubeVisuals.VisualState:
|
||||
@@ -221,6 +235,9 @@
|
||||
- 0
|
||||
- 90
|
||||
- 180
|
||||
- type: ContainerContainer
|
||||
containers:
|
||||
DisposalRouter: !type:Container
|
||||
- type: GenericVisualizer
|
||||
visuals:
|
||||
enum.DisposalTubeVisuals.VisualState:
|
||||
@@ -255,6 +272,9 @@
|
||||
- 0
|
||||
- -90
|
||||
- 180
|
||||
- type: ContainerContainer
|
||||
containers:
|
||||
DisposalJunction: !type:Container
|
||||
- type: GenericVisualizer
|
||||
visuals:
|
||||
enum.DisposalTubeVisuals.VisualState:
|
||||
@@ -291,6 +311,9 @@
|
||||
- 0
|
||||
- 90
|
||||
- 180
|
||||
- type: ContainerContainer
|
||||
containers:
|
||||
DisposalJunction: !type:Container
|
||||
- type: GenericVisualizer
|
||||
visuals:
|
||||
enum.DisposalTubeVisuals.VisualState:
|
||||
@@ -324,6 +347,9 @@
|
||||
- 0
|
||||
- 90
|
||||
- -90
|
||||
- type: ContainerContainer
|
||||
containers:
|
||||
DisposalJunction: !type:Container
|
||||
- type: GenericVisualizer
|
||||
visuals:
|
||||
enum.DisposalTubeVisuals.VisualState:
|
||||
@@ -354,6 +380,9 @@
|
||||
- map: [ "pipe" ]
|
||||
state: conpipe-c
|
||||
- type: DisposalBend
|
||||
- type: ContainerContainer
|
||||
containers:
|
||||
DisposalBend: !type:Container
|
||||
- type: GenericVisualizer
|
||||
visuals:
|
||||
enum.DisposalTubeVisuals.VisualState:
|
||||
|
||||
@@ -72,8 +72,7 @@
|
||||
type: DisposalUnitBoundUserInterface
|
||||
- type: ContainerContainer
|
||||
containers:
|
||||
disposal-unit: !type:Container
|
||||
ents: []
|
||||
DisposalUnit: !type:Container
|
||||
|
||||
- type: entity
|
||||
id: DisposalUnit
|
||||
|
||||
Reference in New Issue
Block a user