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