Remove PA component references (#15252)

This commit is contained in:
DrSmugleaf
2023-04-09 21:10:33 -07:00
committed by GitHub
parent f8cef464a2
commit 39f272fa5c
11 changed files with 49 additions and 50 deletions

View File

@@ -1,18 +1,16 @@
using Content.Server.Power.Components;
namespace Content.Server.ParticleAccelerator.Components
namespace Content.Server.ParticleAccelerator.Components;
[RegisterComponent]
public sealed class ParticleAcceleratorPowerBoxComponent : Component
{
[RegisterComponent]
[ComponentReference(typeof(ParticleAcceleratorPartComponent))]
public sealed class ParticleAcceleratorPowerBoxComponent : ParticleAcceleratorPartComponent
[ViewVariables] public PowerConsumerComponent? PowerConsumerComponent;
protected override void Initialize()
{
[ViewVariables] public PowerConsumerComponent? PowerConsumerComponent;
base.Initialize();
protected override void Initialize()
{
base.Initialize();
PowerConsumerComponent = Owner.EnsureComponentWarn<PowerConsumerComponent>();
}
PowerConsumerComponent = Owner.EnsureComponentWarn<PowerConsumerComponent>();
}
}