using Robust.Shared.GameStates;
namespace Content.Shared.Weapons.Melee.EnergySword;
[RegisterComponent, NetworkedComponent, Access(typeof(EnergySwordSystem))]
[AutoGenerateComponentState]
public sealed partial class EnergySwordComponent : Component
{
///
/// What color the blade will be when activated.
///
[DataField, AutoNetworkedField]
public Color ActivatedColor = Color.DodgerBlue;
///
/// A color option list for the random color picker.
///
[DataField]
public List ColorOptions = new()
{
Color.Tomato,
Color.DodgerBlue,
Color.Aqua,
Color.MediumSpringGreen,
Color.MediumOrchid
};
///
/// Whether the energy sword has been pulsed by a multitool,
/// causing the blade to cycle RGB colors.
///
[DataField, AutoNetworkedField]
public bool Hacked;
///
/// RGB cycle rate for hacked e-swords.
///
[DataField]
public float CycleRate = 1f;
}