Files
tbd-station-14/Content.Server/ParticleAccelerator/Components/ParticleAcceleratorPowerBoxComponent.cs
Pieter-Jan Briers 103bc19508 Pow3r: stage 1 (#4208)
Co-authored-by: 20kdc <asdd2808@gmail.com>
2021-07-04 18:11:52 +02:00

23 lines
717 B
C#

#nullable enable
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>();
}
}
}