using Robust.Shared.Serialization;
namespace Content.Shared._CP14.MagicEnergy.Components;
///
/// Allows you to examine how much energy is in that object
///
[RegisterComponent, Access(typeof(SharedCP14MagicEnergyCrystalSlotSystem))]
public sealed partial class CP14MagicEnergyCrystalSlotComponent : Component
{
[DataField(required: true)]
public string SlotId = string.Empty;
public bool Powered = false;
}
[Serializable, NetSerializable]
public enum CP14MagicSlotVisuals : byte
{
Inserted,
Powered
}
///
/// Is called when the state of the crystal is changed: it is pulled out, inserted, or the amount of energy in it has changed.
///
public sealed class CP14SlotCrystalChangedEvent : EntityEventArgs
{
public readonly bool Ejected;
public CP14SlotCrystalChangedEvent(bool ejected)
{
Ejected = ejected;
}
}
///
/// Is called when the power status of the device changes.
///
public sealed class CP14SlotCrystalPowerChangedEvent : EntityEventArgs
{
public readonly bool Powered;
public CP14SlotCrystalPowerChangedEvent(bool powered)
{
Powered = powered;
}
}