This commit is contained in:
wrexbe
2022-02-01 19:35:40 -08:00
committed by GitHub
parent fa8a7e609a
commit 17db0775c8
436 changed files with 20 additions and 828 deletions

View File

@@ -7,11 +7,10 @@ using Robust.Shared.ViewVariables;
namespace Content.Server.DeviceNetwork.Components
{
[RegisterComponent]
[ComponentProtoName("ApcNetworkConnection")]
[Friend(typeof(ApcNetworkSystem))]
public class ApcNetworkComponent : Component
{
public override string Name => "ApcNetworkConnection";
/// <summary>
/// The node Group the ApcNetworkConnection is connected to
/// </summary>

View File

@@ -6,11 +6,9 @@ using Robust.Shared.ViewVariables;
namespace Content.Server.DeviceNetwork.Components
{
[RegisterComponent]
[ComponentProtoName("DeviceNetworkComponent")]
public class DeviceNetworkComponent : Component
{
public override string Name => "DeviceNetworkComponent";
/// <summary>
/// Valid device network NetIDs.
/// The netID is used to separate device networks that shouldn't interact with each other e.g. wireless and wired.

View File

@@ -9,8 +9,6 @@ namespace Content.Server.DeviceNetwork.Components.Devices
[Friend(typeof(ApcNetSwitchSystem))]
public class ApcNetSwitchComponent : Component
{
public override string Name => "ApcNetSwitch";
[ViewVariables] public bool State;
}
}

View File

@@ -3,8 +3,8 @@ using Robust.Shared.GameObjects;
namespace Content.Server.DeviceNetwork.Components
{
[RegisterComponent]
[ComponentProtoName("WiredNetworkConnection")]
public class WiredNetworkComponent : Component
{
public override string Name => "WiredNetworkConnection";
}
}

View File

@@ -7,10 +7,9 @@ namespace Content.Server.DeviceNetwork.Components
/// Sends and receives device network messages wirelessly. Devices sending and receiving need to be in range and on the same frequency.
/// </summary>
[RegisterComponent]
[ComponentProtoName("WirelessNetworkConnection")]
public class WirelessNetworkComponent : Component
{
public override string Name => "WirelessNetworkConnection";
[DataField("range")]
public int Range { get; set; }
}