Add a crew monitoring server (#7542)
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
using Content.Shared.Medical.SuitSensor;
|
||||
using Robust.Shared.Map;
|
||||
|
||||
namespace Content.Server.Medical.CrewMonitoring;
|
||||
|
||||
[RegisterComponent]
|
||||
[Access(typeof(CrewMonitoringServerSystem))]
|
||||
public sealed class CrewMonitoringServerComponent : Component
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// List of all currently connected sensors to this server.
|
||||
/// </summary>
|
||||
public readonly Dictionary<string, SuitSensorStatus> SensorStatus = new();
|
||||
|
||||
/// <summary>
|
||||
/// After what time sensor consider to be lost.
|
||||
/// </summary>
|
||||
[DataField("sensorTimeout"), ViewVariables(VVAccess.ReadWrite)]
|
||||
public float SensorTimeout = 10f;
|
||||
|
||||
/// <summary>
|
||||
/// Whether the server can become the currently active server. The server being unavailable usually means that it isn't powered
|
||||
/// </summary>
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
public bool Available = true;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Whether the server is the currently active server for the station it's on
|
||||
/// </summary>
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
public bool Active = true;
|
||||
}
|
||||
Reference in New Issue
Block a user