using Content.Server._NF.Solar.EntitySystems;
namespace Content.Server._NF.Solar.Components;
///
/// This is a solar panel.
/// It updates with grid-based tracking information.
/// It generates power from the sun based on coverage.
/// Largely based on Space Station 14's SolarPanelComponent.
///
[RegisterComponent]
[Access(typeof(NFPowerSolarSystem))]
public sealed partial class NFSolarPanelComponent : Component
{
///
/// Maximum supply output by this panel (coverage = 1)
///
[DataField]
public int MaxSupply = 750;
///
/// Current coverage of this panel (from 0 to 1).
/// This is updated by .
/// DO NOT WRITE WITHOUT CALLING UpdateSupply()!
///
[ViewVariables]
public float Coverage { get; set; } = 0;
}