using Content.Server.Construction.Components;
using Content.Shared.Construction.Prototypes;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
namespace Content.Server.Power.Components
{
[RegisterComponent]
public sealed partial class UpgradePowerSupplyRampingComponent : Component
{
[ViewVariables(VVAccess.ReadWrite)]
public float BaseRampRate;
///
/// The machine part that affects the power supply ramping
///
[DataField("machinePartPowerCapacity", customTypeSerializer: typeof(PrototypeIdSerializer))]
public string MachinePartRampRate = "Capacitor";
///
/// The multiplier used for scaling the power supply ramping
///
[DataField("supplyRampingMultiplier")]
public float SupplyRampingMultiplier = 1f;
///
/// What type of scaling is being used?
///
[DataField("scaling", required: true), ViewVariables(VVAccess.ReadWrite)]
public MachineUpgradeScalingType Scaling;
///
/// The current value that the power supply is being scaled by
///
[DataField("actualScalar"), ViewVariables(VVAccess.ReadWrite)]
public float ActualScalar = 1f;
}
}