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