]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Voltage enum to shared (#38964)
authorUpAndLeaves <92269094+Alpha-Two@users.noreply.github.com>
Mon, 14 Jul 2025 06:13:01 +0000 (06:13 +0000)
committerGitHub <noreply@github.com>
Mon, 14 Jul 2025 06:13:01 +0000 (23:13 -0700)
Content.Server/Power/Components/BaseNetConnectorComponent.cs
Content.Server/Power/Generator/PowerSwitchableSystem.cs
Content.Shared/Power/SharedPower.cs

index b22950c1a1ed88129ef383da829319bac472ed21..464bbd6f39ea026a034ca61b2aeaf2f6749403c9 100644 (file)
@@ -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,
-    }
 }
index 7b7d7ce2569b198b8e219c6f6cc355040ad483e1..25de3bd293487fc0f78ad46a629f208717a0132f 100644 (file)
@@ -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;
index da88198825a4d6b26b983cbb081cb4ee19a6fb09..d45fb96cac0539dde8cbb0c010be9c2529c02c01 100644 (file)
@@ -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,
+    }
 }