LightAttackEvent.cs 518 B

1234567891011121314151617181920
  1. using Robust.Shared.Map;
  2. using Robust.Shared.Serialization;
  3. namespace Content.Shared.Weapons.Melee.Events;
  4. /// <summary>
  5. /// Raised when a light attack is made.
  6. /// </summary>
  7. [Serializable, NetSerializable]
  8. public sealed class LightAttackEvent : AttackEvent
  9. {
  10. public readonly NetEntity? Target;
  11. public readonly NetEntity Weapon;
  12. public LightAttackEvent(NetEntity? target, NetEntity weapon, NetCoordinates coordinates) : base(coordinates)
  13. {
  14. Target = target;
  15. Weapon = weapon;
  16. }
  17. }