Files
tbd-station-14/Content.Server/ParticleAccelerator/Components/ParticleAcceleratorPowerBoxComponent.cs
2021-07-16 17:37:09 -07:00

22 lines
700 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 class ParticleAcceleratorPowerBoxComponent : ParticleAcceleratorPartComponent
{
public override string Name => "ParticleAcceleratorPowerBox";
[ViewVariables] public PowerConsumerComponent? PowerConsumerComponent;
protected override void Initialize()
{
base.Initialize();
PowerConsumerComponent = Owner.EnsureComponentWarn<PowerConsumerComponent>();
}
}
}