using Content.Server.Solar.EntitySystems;
namespace Content.Server.Solar.Components
{
///
/// This is a solar panel.
/// It generates power from the sun based on coverage.
///
[RegisterComponent]
[Access(typeof(PowerSolarSystem))]
public sealed partial class SolarPanelComponent : Component
{
///
/// Maximum supply output by this panel (coverage = 1)
///
[DataField("maxSupply")]
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;
}
}