HeavyAttackEvent.cs 697 B

123456789101112131415161718192021222324
  1. using Robust.Shared.Map;
  2. using Robust.Shared.Serialization;
  3. namespace Content.Shared.Weapons.Melee.Events;
  4. /// <summary>
  5. /// Raised on the client when it attempts a heavy attack.
  6. /// </summary>
  7. [Serializable, NetSerializable]
  8. public sealed class HeavyAttackEvent : AttackEvent
  9. {
  10. public readonly NetEntity Weapon;
  11. /// <summary>
  12. /// As what the client swung at will not match server we'll have them tell us what they hit so we can verify.
  13. /// </summary>
  14. public List<NetEntity> Entities;
  15. public HeavyAttackEvent(NetEntity weapon, List<NetEntity> entities, NetCoordinates coordinates) : base(coordinates)
  16. {
  17. Weapon = weapon;
  18. Entities = entities;
  19. }
  20. }