using Content.Server.Solar.EntitySystems; using Content.Shared.Guidebook; 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")] [GuidebookData] 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; } }