2021-12-29 08:19:00 +03:00
using Content.Shared.Medical.SuitSensor ;
namespace Content.Server.Medical.CrewMonitoring
{
[RegisterComponent]
2022-06-07 15:26:28 +02:00
[Access(typeof(CrewMonitoringConsoleSystem))]
2022-02-16 00:23:23 -07:00
public sealed class CrewMonitoringConsoleComponent : Component
2021-12-29 08:19:00 +03:00
{
/// <summary>
/// List of all currently connected sensors to this console.
/// </summary>
public Dictionary < string , SuitSensorStatus > ConnectedSensors = new ( ) ;
/// <summary>
/// After what time sensor consider to be lost.
/// </summary>
2022-04-09 13:50:59 +12:00
[DataField("sensorTimeout"), ViewVariables(VVAccess.ReadWrite)]
2021-12-29 08:19:00 +03:00
public float SensorTimeout = 10f ;
2022-04-09 13:50:59 +12:00
/// <summary>
/// Whether the direction arrows in the monitor UI should snap the nearest diagonal or cardinal direction, or whether they should point exactly towards the target.
/// </summary>
[DataField("snap"), ViewVariables(VVAccess.ReadWrite)]
public bool Snap = true ;
/// <summary>
/// Minimum distance before the monitor direction indicator stops pointing towards the target and instead
/// shows an icon indicating that the target is "here". Does not affect the displayed coordinates.
/// </summary>
[DataField("precision"), ViewVariables(VVAccess.ReadWrite)]
public float Precision = 10f ;
2021-12-29 08:19:00 +03:00
}
}