Files
crystall-punk-14/Content.Shared/_CP14/MagicEnergy/Components/CP14MagicEnergyContainerComponent.cs
2025-04-14 17:32:41 +03:00

30 lines
863 B
C#

using Content.Shared.Alert;
using Content.Shared.FixedPoint;
using Robust.Shared.Prototypes;
using Robust.Shared.GameStates;
namespace Content.Shared._CP14.MagicEnergy.Components;
/// <summary>
/// Allows an item to store magical energy within itself.
/// </summary>
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
[Access(typeof(SharedCP14MagicEnergySystem))]
public sealed partial class CP14MagicEnergyContainerComponent : Component
{
[DataField, AutoNetworkedField]
public FixedPoint2 Energy = 0;
[DataField, AutoNetworkedField]
public FixedPoint2 MaxEnergy = 100;
[DataField, AutoNetworkedField]
public ProtoId<AlertPrototype>? MagicAlert;
/// <summary>
/// Does this container support unsafe energy manipulation?
/// </summary>
[DataField, AutoNetworkedField]
public bool UnsafeSupport;
}