Voltage enum to shared (#38964)
This commit is contained in:
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user