Files
tbd-station-14/Content.Server/ParticleAccelerator/Components/ParticleAcceleratorPowerBoxComponent.cs
2022-02-02 14:35:40 +11:00

21 lines
630 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
{
[ViewVariables] public PowerConsumerComponent? PowerConsumerComponent;
protected override void Initialize()
{
base.Initialize();
PowerConsumerComponent = Owner.EnsureComponentWarn<PowerConsumerComponent>();
}
}
}