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 UpgradePowerSupplierComponent : Component { [ViewVariables(VVAccess.ReadWrite)] public float BaseSupplyRate; /// /// The machine part that affects the power supplu. /// [DataField(customTypeSerializer: typeof(PrototypeIdSerializer))] public string MachinePartPowerSupply = "Capacitor"; /// /// The multiplier used for scaling the power supply. /// [DataField(required: true)] public float PowerSupplyMultiplier = 1f; /// /// What type of scaling is being used? /// [DataField(required: true)] public MachineUpgradeScalingType Scaling; /// /// The current value that the power supply is being scaled by, /// [DataField] public float ActualScalar = 1f; }