Adds VV attributes on some fields in surveillance camera components (#11453)

This commit is contained in:
Flipp Syder
2022-09-22 08:45:26 -07:00
committed by GitHub
parent c471aca2af
commit aa1cd71d05
2 changed files with 11 additions and 0 deletions

View File

@@ -5,17 +5,24 @@ namespace Content.Server.SurveillanceCamera;
public sealed class SurveillanceCameraMonitorComponent : Component
{
// Currently active camera viewed by this monitor.
[ViewVariables]
public EntityUid? ActiveCamera { get; set; }
[ViewVariables]
public string ActiveCameraAddress { get; set; } = string.Empty;
[ViewVariables]
// Last time this monitor was sent a heartbeat.
public float LastHeartbeat { get; set; }
[ViewVariables]
// Last time this monitor sent a heartbeat.
public float LastHeartbeatSent { get; set; }
// Next camera this monitor is trying to connect to.
// If the monitor has connected to the camera, this
// should be set to null.
[ViewVariables]
public string? NextCameraAddress { get; set; }
[ViewVariables]
@@ -23,10 +30,12 @@ public sealed class SurveillanceCameraMonitorComponent : Component
public HashSet<EntityUid> Viewers { get; } = new();
// Current active subnet.
[ViewVariables]
public string ActiveSubnet { get; set; } = default!;
// Known cameras in this subnet by address with name values.
// This is cleared when the subnet is changed.
[ViewVariables]
public Dictionary<string, string> KnownCameras { get; } = new();
[ViewVariables]