Auto comp (#6416)
This commit is contained in:
@@ -13,8 +13,6 @@ namespace Content.Server.Disposal.Tube.Components
|
||||
[DataField("sideDegrees")]
|
||||
private int _sideDegrees = -90;
|
||||
|
||||
public override string Name => "DisposalBend";
|
||||
|
||||
protected override Direction[] ConnectableDirections()
|
||||
{
|
||||
var direction = IoCManager.Resolve<IEntityManager>().GetComponent<TransformComponent>(Owner).LocalRotation;
|
||||
|
||||
@@ -19,8 +19,6 @@ namespace Content.Server.Disposal.Tube.Components
|
||||
|
||||
private const string HolderPrototypeId = "DisposalHolder";
|
||||
|
||||
public override string Name => "DisposalEntry";
|
||||
|
||||
public bool TryInsert(DisposalUnitComponent from)
|
||||
{
|
||||
var holder = _entMan.SpawnEntity(HolderPrototypeId, _entMan.GetComponent<TransformComponent>(Owner).MapPosition);
|
||||
|
||||
@@ -24,8 +24,6 @@ namespace Content.Server.Disposal.Tube.Components
|
||||
[DataField("degrees")]
|
||||
private List<Angle> _degrees = new();
|
||||
|
||||
public override string Name => "DisposalJunction";
|
||||
|
||||
protected override Direction[] ConnectableDirections()
|
||||
{
|
||||
var direction = _entMan.GetComponent<TransformComponent>(Owner).LocalRotation;
|
||||
|
||||
@@ -31,8 +31,6 @@ namespace Content.Server.Disposal.Tube.Components
|
||||
{
|
||||
[Dependency] private readonly IEntityManager _entMan = default!;
|
||||
|
||||
public override string Name => "DisposalRouter";
|
||||
|
||||
[ViewVariables]
|
||||
private readonly HashSet<string> _tags = new();
|
||||
|
||||
|
||||
@@ -28,8 +28,6 @@ namespace Content.Server.Disposal.Tube.Components
|
||||
{
|
||||
[Dependency] private readonly IEntityManager _entMan = default!;
|
||||
|
||||
public override string Name => "DisposalTagger";
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
private string _tag = "";
|
||||
|
||||
|
||||
@@ -11,8 +11,6 @@ namespace Content.Server.Disposal.Tube.Components
|
||||
[ComponentReference(typeof(IDisposalTubeComponent))]
|
||||
public class DisposalTransitComponent : DisposalTubeComponent
|
||||
{
|
||||
public override string Name => "DisposalTransit";
|
||||
|
||||
protected override Direction[] ConnectableDirections()
|
||||
{
|
||||
var rotation = IoCManager.Resolve<IEntityManager>().GetComponent<TransformComponent>(Owner).LocalRotation;
|
||||
|
||||
Reference in New Issue
Block a user