mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-10 02:41:18 +03:00
28 lines
874 B
C#
28 lines
874 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)
|
|
{
|
|
if (component.Master != null)
|
|
component.Master.PowerBoxReceivedChanged(args);
|
|
}
|
|
}
|
|
}
|