6
2025-11-05 11:11:22 +03:00

23 lines
575 B
C#

using System.Numerics;
namespace Content.Shared.Throwing;
[ByRefEvent]
public struct BeforeThrowEvent
{
public BeforeThrowEvent(EntityUid itemUid, Vector2 direction, float throwSpeed, EntityUid playerUid)
{
ItemUid = itemUid;
Direction = direction;
ThrowSpeed = throwSpeed;
PlayerUid = playerUid;
}
public EntityUid ItemUid { get; set; }
public Vector2 Direction { get; set; } // Frontier: added set
public float ThrowSpeed { get; set;}
public EntityUid PlayerUid { get; }
public bool Cancelled = false;
}