Nuke PowerChangedMessage (#7231)
This commit is contained in:
17
Content.Server/Arcade/ArcadeSystem.BlockGame.cs
Normal file
17
Content.Server/Arcade/ArcadeSystem.BlockGame.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using Content.Server.Arcade.Components;
|
||||
using Content.Server.Power.Components;
|
||||
|
||||
namespace Content.Server.Arcade;
|
||||
|
||||
public sealed partial class ArcadeSystem
|
||||
{
|
||||
private void InitializeBlockGame()
|
||||
{
|
||||
SubscribeLocalEvent<BlockGameArcadeComponent, PowerChangedEvent>(OnBlockPowerChanged);
|
||||
}
|
||||
|
||||
private static void OnBlockPowerChanged(EntityUid uid, BlockGameArcadeComponent component, PowerChangedEvent args)
|
||||
{
|
||||
component.OnPowerStateChanged(args);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user