Files
OldThink/Content.Server/ParticleAccelerator/EntitySystems/ParticleAcceleratorSystem.PowerBox.cs

22 lines
695 B
C#
Raw Normal View History

using Content.Server.ParticleAccelerator.Components;
using Content.Server.Power.EntitySystems;
namespace Content.Server.ParticleAccelerator.EntitySystems
{
2022-03-29 03:58:51 +11:00
public sealed partial class ParticleAcceleratorSystem
{
2022-03-29 03:58:51 +11:00
private void InitializePowerBoxSystem()
{
2022-03-29 03:58:51 +11:00
SubscribeLocalEvent<ParticleAcceleratorPowerBoxComponent, PowerConsumerReceivedChanged>(PowerBoxReceivedChanged);
}
private static void PowerBoxReceivedChanged(
EntityUid uid,
ParticleAcceleratorPowerBoxComponent component,
PowerConsumerReceivedChanged args)
{
2022-03-29 03:58:51 +11:00
component.Master?.PowerBoxReceivedChanged(args);
}
}
}