Files
tbd-station-14/Content.Shared/DeviceNetwork/Systems/SharedNetworkConfiguratorSystem.cs
metalgearsloth 13c6537842 Fix network configurator memory leaking (#27346)
* Fix network configurator memory leaking

Doesn't dispose this window.

* Fix the other part
2024-04-26 20:36:57 +10:00

38 lines
913 B
C#

using Content.Shared.Actions;
using Content.Shared.DeviceNetwork.Components;
using Content.Shared.UserInterface;
using Robust.Shared.Serialization;
namespace Content.Shared.DeviceNetwork.Systems;
public abstract class SharedNetworkConfiguratorSystem : EntitySystem
{
public override void Initialize()
{
base.Initialize();
SubscribeLocalEvent<NetworkConfiguratorComponent, ActivatableUIOpenAttemptEvent>(OnUiOpenAttempt);
}
private void OnUiOpenAttempt(EntityUid uid, NetworkConfiguratorComponent configurator, ActivatableUIOpenAttemptEvent args)
{
if (configurator.LinkModeActive)
args.Cancel();
}
}
public sealed partial class ClearAllOverlaysEvent : InstantActionEvent
{
}
[Serializable, NetSerializable]
public enum NetworkConfiguratorVisuals
{
Mode
}
[Serializable, NetSerializable]
public enum NetworkConfiguratorLayers
{
ModeLight
}