6
2026-01-24 12:49:55 +03:00

43 lines
984 B
C#

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;
}
}