Files
wwdpublic/Content.Server/DeviceNetwork/Components/SingletonDeviceNetServerComponent.cs
Julian Giebel 236bba59c2 System for single device net server per station functionality (#23946)
(cherry picked from commit 1ed63d43b00ebacafb5d6bc50d6c39348c7e8b39)
2024-03-07 01:22:35 +01:00

21 lines
703 B
C#

using Content.Server.DeviceNetwork.Systems;
namespace Content.Server.DeviceNetwork.Components;
[RegisterComponent]
[Access(typeof(SingletonDeviceNetServerSystem))]
public sealed partial class SingletonDeviceNetServerComponent : Component
{
/// <summary>
/// Whether the server can become the currently active server. The server being unavailable usually means that it isn't powered
/// </summary>
[DataField, ViewVariables(VVAccess.ReadWrite)]
public bool Available = true;
/// <summary>
/// Whether the server is the currently active server for the station it's on
/// </summary>
[DataField, ViewVariables(VVAccess.ReadWrite)]
public bool Active = true;
}