Change suit sensors on other players (#29668)
* Suit sensors can be turned off on other players * less doafter time + interaction (nostate) check * code cleanup * code cleanup 2
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
using Content.Shared.DoAfter;
|
||||
using Robust.Shared.Map;
|
||||
using Robust.Shared.Serialization;
|
||||
|
||||
@@ -67,3 +68,16 @@ public static class SuitSensorConstants
|
||||
///Used by the CrewMonitoringServerSystem to send the status of all connected suit sensors to each crew monitor
|
||||
public const string NET_STATUS_COLLECTION = "suit-status-collection";
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public sealed partial class SuitSensorChangeDoAfterEvent : DoAfterEvent
|
||||
{
|
||||
public SuitSensorMode Mode { get; private set; } = SuitSensorMode.SensorOff;
|
||||
|
||||
public SuitSensorChangeDoAfterEvent(SuitSensorMode mode)
|
||||
{
|
||||
Mode = mode;
|
||||
}
|
||||
|
||||
public override DoAfterEvent Clone() => this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user