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:
BombasterDS
2024-08-11 19:04:42 +10:00
committed by GitHub
parent c8f1c22ff2
commit 67253a3fe1
3 changed files with 78 additions and 16 deletions

View File

@@ -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;
}