System for single device net server per station functionality (#23946)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user