diff --git a/Content.Server/Power/Components/BaseNetConnectorComponent.cs b/Content.Server/Power/Components/BaseNetConnectorComponent.cs index b22950c1a1..464bbd6f39 100644 --- a/Content.Server/Power/Components/BaseNetConnectorComponent.cs +++ b/Content.Server/Power/Components/BaseNetConnectorComponent.cs @@ -4,6 +4,7 @@ using Content.Server.NodeContainer; using Content.Server.NodeContainer.NodeGroups; using Content.Shared.NodeContainer; using Content.Shared.NodeContainer.NodeGroups; +using Content.Shared.Power; namespace Content.Server.Power.Components { @@ -94,11 +95,4 @@ namespace Content.Server.Power.Components TryFindAndSetNet(); } } - - public enum Voltage - { - High = NodeGroupID.HVPower, - Medium = NodeGroupID.MVPower, - Apc = NodeGroupID.Apc, - } } diff --git a/Content.Server/Power/Generator/PowerSwitchableSystem.cs b/Content.Server/Power/Generator/PowerSwitchableSystem.cs index 7b7d7ce256..25de3bd293 100644 --- a/Content.Server/Power/Generator/PowerSwitchableSystem.cs +++ b/Content.Server/Power/Generator/PowerSwitchableSystem.cs @@ -4,6 +4,7 @@ using Content.Server.Popups; using Content.Server.Power.Components; using Content.Server.Power.Nodes; using Content.Shared.NodeContainer; +using Content.Shared.Power; using Content.Shared.Power.Generator; using Content.Shared.Timing; using Content.Shared.Verbs; diff --git a/Content.Shared/Power/SharedPower.cs b/Content.Shared/Power/SharedPower.cs index da88198825..d45fb96cac 100644 --- a/Content.Shared/Power/SharedPower.cs +++ b/Content.Shared/Power/SharedPower.cs @@ -1,3 +1,4 @@ +using Content.Shared.NodeContainer.NodeGroups; using Robust.Shared.Serialization; namespace Content.Shared.Power @@ -31,4 +32,12 @@ namespace Content.Shared.Power MediumVoltage, Apc, } + + [Serializable, NetSerializable] + public enum Voltage + { + High = NodeGroupID.HVPower, + Medium = NodeGroupID.MVPower, + Apc = NodeGroupID.Apc, + } }