Files
tbd-station-14/Content.Server/Solar/Components/SolarPanelComponent.cs
ArtisticRoomba ef4f5cf0a1 Engineering guidebook improvements (#34695)
* engineering guidebook improvements

* whoops

* Changes

* this game is en-US, so it shall be gasses, not gases

* make changes to AccessConfigurator.xml, SolarPanels.xml, TeslaEngine.xml

---------

Co-authored-by: ScarKy0 <scarky0@onet.eu>
2025-02-14 19:59:19 -08:00

31 lines
894 B
C#

using Content.Server.Solar.EntitySystems;
using Content.Shared.Guidebook;
namespace Content.Server.Solar.Components
{
/// <summary>
/// This is a solar panel.
/// It generates power from the sun based on coverage.
/// </summary>
[RegisterComponent]
[Access(typeof(PowerSolarSystem))]
public sealed partial class SolarPanelComponent : Component
{
/// <summary>
/// Maximum supply output by this panel (coverage = 1)
/// </summary>
[DataField("maxSupply")]
[GuidebookData]
public int MaxSupply = 750;
/// <summary>
/// Current coverage of this panel (from 0 to 1).
/// This is updated by <see cref='PowerSolarSystem'/>.
/// DO NOT WRITE WITHOUT CALLING UpdateSupply()!
/// </summary>
[ViewVariables]
public float Coverage { get; set; } = 0;
}
}