System for single device net server per station functionality (#23946)

This commit is contained in:
Julian Giebel
2024-03-04 01:45:37 +01:00
committed by GitHub
parent 21a95960f0
commit 1ed63d43b0
6 changed files with 169 additions and 109 deletions

View File

@@ -0,0 +1,20 @@
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;
}