Make power grid check event force APCs off (#17935)

* replace query with enumerator

* remove unnecessary imports

* prevent from toggling APC during event

* all entity query i guess
This commit is contained in:
Slava0135
2023-07-19 00:11:43 +03:00
committed by GitHub
parent ca521183a1
commit d21e4a1d4e
2 changed files with 29 additions and 5 deletions

View File

@@ -0,0 +1,11 @@
using Content.Server.StationEvents.Events;
namespace Content.Server.StationEvents.Components;
/// <summary>
/// Added to APCs to prevent them from turning on until event end
/// </summary>
[RegisterComponent, Access(typeof(PowerGridCheckRule))]
public sealed class PowerGridCheckDisabledComponent : Component
{
}