mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-02-15 02:30:53 +01:00
28 lines
829 B
C#
28 lines
829 B
C#
using Content.Server.ParticleAccelerator.Components;
|
|
using Content.Server.Power.EntitySystems;
|
|
using JetBrains.Annotations;
|
|
using Robust.Shared.GameObjects;
|
|
|
|
namespace Content.Server.ParticleAccelerator.EntitySystems
|
|
{
|
|
[UsedImplicitly]
|
|
public class ParticleAcceleratorPowerBoxSystem : EntitySystem
|
|
{
|
|
public override void Initialize()
|
|
{
|
|
base.Initialize();
|
|
|
|
SubscribeLocalEvent<ParticleAcceleratorPowerBoxComponent, PowerConsumerReceivedChanged>(
|
|
PowerBoxReceivedChanged);
|
|
}
|
|
|
|
private static void PowerBoxReceivedChanged(
|
|
EntityUid uid,
|
|
ParticleAcceleratorPowerBoxComponent component,
|
|
PowerConsumerReceivedChanged args)
|
|
{
|
|
component.Master!.PowerBoxReceivedChanged(args);
|
|
}
|
|
}
|
|
}
|