using System;
using Content.Server.Power.Components;
using Content.Server.Solar.EntitySystems;
using Robust.Server.GameObjects;
using Robust.Shared.Analyzers;
using Robust.Shared.GameObjects;
using Robust.Shared.Serialization.Manager.Attributes;
using Robust.Shared.Timing;
using Robust.Shared.ViewVariables;
namespace Content.Server.Solar.Components
{
///
/// This is a solar panel.
/// It generates power from the sun based on coverage.
///
[RegisterComponent]
[Friend(typeof(PowerSolarSystem))]
public class SolarPanelComponent : Component
{
public override string Name => "SolarPanel";
///
/// Maximum supply output by this panel (coverage = 1)
///
[DataField("maxSupply")]
[ViewVariables]
public int MaxSupply = 1500;
///
/// 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;
}
}