21 lines
637 B
C#
21 lines
637 B
C#
using Content.Server.Power.Components;
|
|
using Robust.Shared.GameObjects;
|
|
using Robust.Shared.ViewVariables;
|
|
|
|
namespace Content.Server.ParticleAccelerator.Components
|
|
{
|
|
[RegisterComponent]
|
|
[ComponentReference(typeof(ParticleAcceleratorPartComponent))]
|
|
public sealed class ParticleAcceleratorPowerBoxComponent : ParticleAcceleratorPartComponent
|
|
{
|
|
[ViewVariables] public PowerConsumerComponent? PowerConsumerComponent;
|
|
|
|
protected override void Initialize()
|
|
{
|
|
base.Initialize();
|
|
|
|
PowerConsumerComponent = Owner.EnsureComponentWarn<PowerConsumerComponent>();
|
|
}
|
|
}
|
|
}
|