Auto comp (#6416)
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user