* SUPER CAMERA(OCHKO) * Удобный монитор камер и портативный мониторинг для детектива. (#25) * Улучшение мониторинга камер * Портативный монитор камер для дека * чейнжлог * Revert "Удобный монитор камер и портативный мониторинг для детектива. (#25)" This reverts commit adf35bb8f6ddd6256b18841a81b330224ebff103. * Revert "Revert "Удобный монитор камер и портативный мониторинг для детектива. (#25)"" This reverts commit bd30fe45046b7b8508e8277f8c186d03338354cd. * cleanups * its so over --------- Co-authored-by: Vigers Ray <60344369+VigersRay@users.noreply.github.com> Co-authored-by: drdth <drdtheuser@gmail.com>
37 lines
1.4 KiB
C#
37 lines
1.4 KiB
C#
using Content.Shared.DeviceNetwork;
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.List;
|
|
|
|
namespace Content.Server.SurveillanceCamera;
|
|
|
|
[RegisterComponent]
|
|
public sealed partial class SurveillanceCameraRouterComponent : Component
|
|
{
|
|
[ViewVariables] public bool Active { get; set; }
|
|
|
|
// The name of the subnet connected to this router.
|
|
[DataField("subnetName")]
|
|
public string SubnetName { get; set; } = string.Empty;
|
|
|
|
[ViewVariables]
|
|
// The monitors to route to. This raises an issue related to
|
|
// camera monitors disappearing before sending a D/C packet,
|
|
// this could probably be refreshed every time a new monitor
|
|
// is added or removed from active routing.
|
|
public HashSet<string> MonitorRoutes { get; } = new();
|
|
|
|
[ViewVariables]
|
|
// The frequency that talks to this router's subnet.
|
|
public uint SubnetFrequency;
|
|
[DataField("subnetFrequency", customTypeSerializer:typeof(PrototypeIdSerializer<DeviceFrequencyPrototype>))]
|
|
public string? SubnetFrequencyId { get; set; }
|
|
|
|
[DataField("setupAvailableNetworks", customTypeSerializer:typeof(PrototypeIdListSerializer<DeviceFrequencyPrototype>))]
|
|
public List<string> AvailableNetworks { get; private set; } = new();
|
|
|
|
// Sunrise-start
|
|
[DataField("subnetColor")]
|
|
public Color SubnetColor;
|
|
// Sunrise-end
|
|
}
|