2022-03-29 03:58:51 +11:00
|
|
|
using Content.Server.ParticleAccelerator.Components;
|
|
|
|
|
using Content.Server.Power.Components;
|
|
|
|
|
|
|
|
|
|
namespace Content.Server.ParticleAccelerator.EntitySystems;
|
|
|
|
|
|
|
|
|
|
public sealed partial class ParticleAcceleratorSystem
|
|
|
|
|
{
|
|
|
|
|
private void InitializeControlBoxSystem()
|
|
|
|
|
{
|
|
|
|
|
SubscribeLocalEvent<ParticleAcceleratorControlBoxComponent, PowerChangedEvent>(OnControlBoxPowerChange);
|
|
|
|
|
}
|
|
|
|
|
|
2022-10-15 15:08:15 +11:00
|
|
|
private static void OnControlBoxPowerChange(EntityUid uid, ParticleAcceleratorControlBoxComponent component, ref PowerChangedEvent args)
|
2022-03-29 03:58:51 +11:00
|
|
|
{
|
|
|
|
|
component.OnPowerStateChanged(args);
|
|
|
|
|
}
|
|
|
|
|
}
|