Crew monitor revisit (#22240)
This commit is contained in:
@@ -1,61 +1,66 @@
|
||||
using Robust.Shared.Map;
|
||||
using Robust.Shared.Serialization;
|
||||
|
||||
namespace Content.Shared.Medical.SuitSensor
|
||||
namespace Content.Shared.Medical.SuitSensor;
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public sealed class SuitSensorStatus
|
||||
{
|
||||
[Serializable, NetSerializable]
|
||||
public sealed class SuitSensorStatus
|
||||
public SuitSensorStatus(NetEntity suitSensorUid, string name, string job, string jobIcon, List<string> jobDepartments)
|
||||
{
|
||||
public SuitSensorStatus(NetEntity suitSensorUid, string name, string job)
|
||||
{
|
||||
SuitSensorUid = suitSensorUid;
|
||||
Name = name;
|
||||
Job = job;
|
||||
}
|
||||
|
||||
public TimeSpan Timestamp;
|
||||
public NetEntity SuitSensorUid;
|
||||
public string Name;
|
||||
public string Job;
|
||||
public bool IsAlive;
|
||||
public int? TotalDamage;
|
||||
public NetCoordinates? Coordinates;
|
||||
SuitSensorUid = suitSensorUid;
|
||||
Name = name;
|
||||
Job = job;
|
||||
JobIcon = jobIcon;
|
||||
JobDepartments = jobDepartments;
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public enum SuitSensorMode : byte
|
||||
{
|
||||
/// <summary>
|
||||
/// Sensor doesn't send any information about owner
|
||||
/// </summary>
|
||||
SensorOff = 0,
|
||||
|
||||
/// <summary>
|
||||
/// Sensor sends only binary status (alive/dead)
|
||||
/// </summary>
|
||||
SensorBinary = 1,
|
||||
|
||||
/// <summary>
|
||||
/// Sensor sends health vitals status
|
||||
/// </summary>
|
||||
SensorVitals = 2,
|
||||
|
||||
/// <summary>
|
||||
/// Sensor sends vitals status and GPS position
|
||||
/// </summary>
|
||||
SensorCords = 3
|
||||
}
|
||||
|
||||
public static class SuitSensorConstants
|
||||
{
|
||||
public const string NET_NAME = "name";
|
||||
public const string NET_JOB = "job";
|
||||
public const string NET_IS_ALIVE = "alive";
|
||||
public const string NET_TOTAL_DAMAGE = "vitals";
|
||||
public const string NET_COORDINATES = "coords";
|
||||
public const string NET_SUIT_SENSOR_UID = "uid";
|
||||
|
||||
///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";
|
||||
}
|
||||
public TimeSpan Timestamp;
|
||||
public NetEntity SuitSensorUid;
|
||||
public string Name;
|
||||
public string Job;
|
||||
public string JobIcon;
|
||||
public List<string> JobDepartments;
|
||||
public bool IsAlive;
|
||||
public int? TotalDamage;
|
||||
public NetCoordinates? Coordinates;
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public enum SuitSensorMode : byte
|
||||
{
|
||||
/// <summary>
|
||||
/// Sensor doesn't send any information about owner
|
||||
/// </summary>
|
||||
SensorOff = 0,
|
||||
|
||||
/// <summary>
|
||||
/// Sensor sends only binary status (alive/dead)
|
||||
/// </summary>
|
||||
SensorBinary = 1,
|
||||
|
||||
/// <summary>
|
||||
/// Sensor sends health vitals status
|
||||
/// </summary>
|
||||
SensorVitals = 2,
|
||||
|
||||
/// <summary>
|
||||
/// Sensor sends vitals status and GPS position
|
||||
/// </summary>
|
||||
SensorCords = 3
|
||||
}
|
||||
|
||||
public static class SuitSensorConstants
|
||||
{
|
||||
public const string NET_NAME = "name";
|
||||
public const string NET_JOB = "job";
|
||||
public const string NET_JOB_ICON = "jobIcon";
|
||||
public const string NET_JOB_DEPARTMENTS = "jobDepartments";
|
||||
public const string NET_IS_ALIVE = "alive";
|
||||
public const string NET_TOTAL_DAMAGE = "vitals";
|
||||
public const string NET_COORDINATES = "coords";
|
||||
public const string NET_SUIT_SENSOR_UID = "uid";
|
||||
|
||||
///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";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user