Fix disposal container names (#10646)

This commit is contained in:
Leon Friedrich
2022-08-17 14:17:32 +12:00
committed by GitHub
parent 46cb3c477c
commit 6cb7bbaf73
10 changed files with 48 additions and 9 deletions

View File

@@ -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;

View File

@@ -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)
{

View File

@@ -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!;

View File

@@ -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]

View File

@@ -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 = "";

View File

@@ -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;

View File

@@ -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!;

View File

@@ -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.

View File

@@ -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:

View File

@@ -72,8 +72,7 @@
type: DisposalUnitBoundUserInterface
- type: ContainerContainer
containers:
disposal-unit: !type:Container
ents: []
DisposalUnit: !type:Container
- type: entity
id: DisposalUnit