using Robust.Shared.GameObjects; using Robust.Shared.Serialization.Manager.Attributes; using Robust.Shared.ViewVariables; namespace Content.Server.DeviceNetwork.Components { [RegisterComponent] public class DeviceNetworkComponent : Component { public override string Name => "DeviceNetworkComponent"; /// /// The device networks netID this DeviceNetworkComponent connects to. /// The netID is used to seperate device networks that shouldn't interact with each other e.g. wireless and wired. /// The default netID's are_ /// 0 -> Private /// 1 -> Wired /// 2 -> Wireless /// [DataField("deviceNetId")] public int DeviceNetId { get; set; } = (int)DeviceNetworkConstants.ConnectionType.Private; [DataField("frequency")] public int Frequency { get; set; } = 0; [ViewVariables] public bool Open; [ViewVariables] public string Address = string.Empty; [DataField("receiveAll")] public bool ReceiveAll; } }