WeaponArcVisualsComponent.cs 535 B

1234567891011121314151617181920212223
  1. namespace Content.Client.Weapons.Melee.Components;
  2. /// <summary>
  3. /// Used for melee attack animations. Typically just has a fadeout.
  4. /// </summary>
  5. [RegisterComponent]
  6. public sealed partial class WeaponArcVisualsComponent : Component
  7. {
  8. public EntityUid? User;
  9. [DataField("animation")]
  10. public WeaponArcAnimation Animation = WeaponArcAnimation.None;
  11. [ViewVariables(VVAccess.ReadWrite), DataField("fadeOut")]
  12. public bool Fadeout = true;
  13. }
  14. public enum WeaponArcAnimation : byte
  15. {
  16. None,
  17. Thrust,
  18. Slash,
  19. }