Files
tbd-station-14/Content.Shared/Power/EntitySystems/SharedActivatableUIRequiresPowerSystem.cs
metalgearsloth e4a5f2a145 Predict ActivatableUIRequiresPower (#28405)
A lot of BUIs aren't going to handle the state coming in cleanly but we can fix em as we find em.
2024-05-30 00:32:16 -07:00

16 lines
519 B
C#

using Content.Shared.Power.Components;
using Content.Shared.UserInterface;
namespace Content.Shared.Power.EntitySystems;
public abstract class SharedActivatableUIRequiresPowerSystem : EntitySystem
{
public override void Initialize()
{
base.Initialize();
SubscribeLocalEvent<ActivatableUIRequiresPowerComponent, ActivatableUIOpenAttemptEvent>(OnActivate);
}
protected abstract void OnActivate(Entity<ActivatableUIRequiresPowerComponent> ent, ref ActivatableUIOpenAttemptEvent args);
}