generator machine upgrading (#12145)

This commit is contained in:
Nemanja
2022-10-22 18:38:57 -04:00
committed by GitHub
parent cc3f9d631f
commit cfab87b3d7
6 changed files with 85 additions and 15 deletions

View File

@@ -1,4 +1,5 @@
using Content.Shared.Construction.Prototypes;
using Content.Server.Construction.Components;
using Content.Shared.Construction.Prototypes;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
namespace Content.Server.Power.Components;
@@ -34,14 +35,7 @@ public sealed class UpgradePowerDrawComponent : Component
/// What type of scaling is being used?
/// </summary>
[DataField("scaling", required: true), ViewVariables(VVAccess.ReadWrite)]
public PowerDrawScalingType Scaling;
public MachineUpgradeScalingType Scaling;
}
/// <summary>
/// The different types of scaling that are available
/// </summary>
public enum PowerDrawScalingType : byte
{
Linear,
Exponential
}