using Content.Shared.FixedPoint;
namespace Content.Server._CP14.MagicEnergy.Components;
///
/// Allows you to restore or deplete the magical energy in the item
///
[RegisterComponent, Access(typeof(CP14MagicEnergySystem))]
public sealed partial class CP14MagicEnergyDrawComponent : Component
{
[DataField]
public bool Enable = true;
[DataField]
public FixedPoint2 Energy = 1f;
///
/// If not safe, restoring or drawing power across boundaries call dangerous events, that may destroy crystals
///
[DataField]
public bool Safe = true;
///
/// how often objects will try to change magic energy. In Seconds
///
[DataField]
public float Delay = 5f;
///
/// the time of the next magic energy change
///
[DataField]
public TimeSpan NextUpdateTime { get; set; } = TimeSpan.Zero;
}