Files
tbd-station-14/Content.Shared/Internals/InternalsDoAfterEvent.cs
Ciarán Walsh d83f393fa4 Use distinct action labels for toggling internals on and off. (#36073)
* Use distinct action labels for toggling internals on and off.

* Implement specific actions for enabling/disabling internals

Avoids potential confusing race conditions where two people might perform the "Toggle Internals On" action an the same person,
which would have jsut toggled twice.

* If no gas tank, will give popup

---------

Co-authored-by: beck-thompson <beck314159@hotmail.com>
2025-06-02 13:09:45 +02:00

28 lines
559 B
C#

using Content.Shared.Alert;
using Content.Shared.DoAfter;
using Robust.Shared.Serialization;
namespace Content.Shared.Internals;
public enum ToggleMode
{
Toggle,
On,
Off
}
[Serializable, NetSerializable]
public sealed partial class InternalsDoAfterEvent : DoAfterEvent
{
public ToggleMode ToggleMode = ToggleMode.Toggle;
public InternalsDoAfterEvent(ToggleMode mode)
{
ToggleMode = mode;
}
public override DoAfterEvent Clone() => this;
}
public sealed partial class ToggleInternalsAlertEvent : BaseAlertEvent;