Voltage enum to shared (#38964)

This commit is contained in:
UpAndLeaves
2025-07-14 06:13:01 +00:00
committed by GitHub
parent 4f766f199c
commit 229f33f22a
3 changed files with 11 additions and 7 deletions

View File

@@ -4,6 +4,7 @@ using Content.Server.NodeContainer;
using Content.Server.NodeContainer.NodeGroups; using Content.Server.NodeContainer.NodeGroups;
using Content.Shared.NodeContainer; using Content.Shared.NodeContainer;
using Content.Shared.NodeContainer.NodeGroups; using Content.Shared.NodeContainer.NodeGroups;
using Content.Shared.Power;
namespace Content.Server.Power.Components namespace Content.Server.Power.Components
{ {
@@ -94,11 +95,4 @@ namespace Content.Server.Power.Components
TryFindAndSetNet(); TryFindAndSetNet();
} }
} }
public enum Voltage
{
High = NodeGroupID.HVPower,
Medium = NodeGroupID.MVPower,
Apc = NodeGroupID.Apc,
}
} }

View File

@@ -4,6 +4,7 @@ using Content.Server.Popups;
using Content.Server.Power.Components; using Content.Server.Power.Components;
using Content.Server.Power.Nodes; using Content.Server.Power.Nodes;
using Content.Shared.NodeContainer; using Content.Shared.NodeContainer;
using Content.Shared.Power;
using Content.Shared.Power.Generator; using Content.Shared.Power.Generator;
using Content.Shared.Timing; using Content.Shared.Timing;
using Content.Shared.Verbs; using Content.Shared.Verbs;

View File

@@ -1,3 +1,4 @@
using Content.Shared.NodeContainer.NodeGroups;
using Robust.Shared.Serialization; using Robust.Shared.Serialization;
namespace Content.Shared.Power namespace Content.Shared.Power
@@ -31,4 +32,12 @@ namespace Content.Shared.Power
MediumVoltage, MediumVoltage,
Apc, Apc,
} }
[Serializable, NetSerializable]
public enum Voltage
{
High = NodeGroupID.HVPower,
Medium = NodeGroupID.MVPower,
Apc = NodeGroupID.Apc,
}
} }