| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- using System.Numerics;
- using Robust.Shared.Serialization;
- namespace Content.Shared.Weapons.Melee.Events;
- /// <summary>
- /// Data for melee lunges from attacks.
- /// </summary>
- [Serializable, NetSerializable]
- public sealed class MeleeLungeEvent : EntityEventArgs
- {
- public NetEntity Entity;
- /// <summary>
- /// The weapon used.
- /// </summary>
- public NetEntity Weapon;
- /// <summary>
- /// Width of the attack angle.
- /// </summary>
- public Angle Angle;
- /// <summary>
- /// The relative local position to the <see cref="Entity"/>
- /// </summary>
- public Vector2 LocalPos;
- /// <summary>
- /// Entity to spawn for the animation
- /// </summary>
- public string? Animation;
- public MeleeLungeEvent(NetEntity entity, NetEntity weapon, Angle angle, Vector2 localPos, string? animation)
- {
- Entity = entity;
- Weapon = weapon;
- Angle = angle;
- LocalPos = localPos;
- Animation = animation;
- }
- }
|