2021-07-04 18:11:52 +02:00
|
|
|
|
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
|
2021-07-04 18:11:52 +02:00
|
|
|
|
{
|
2022-03-29 03:58:51 +11:00
|
|
|
|
private void InitializePowerBoxSystem()
|
2021-07-04 18:11:52 +02:00
|
|
|
|
{
|
2022-03-29 03:58:51 +11:00
|
|
|
|
SubscribeLocalEvent<ParticleAcceleratorPowerBoxComponent, PowerConsumerReceivedChanged>(PowerBoxReceivedChanged);
|
2021-07-04 18:11:52 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private static void PowerBoxReceivedChanged(
|
|
|
|
|
|
EntityUid uid,
|
|
|
|
|
|
ParticleAcceleratorPowerBoxComponent component,
|
|
|
|
|
|
PowerConsumerReceivedChanged args)
|
|
|
|
|
|
{
|
2022-03-29 03:58:51 +11:00
|
|
|
|
component.Master?.PowerBoxReceivedChanged(args);
|
2021-07-04 18:11:52 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|