Files
crystall-punk-14/Content.Shared/Throwing/BeforeThrowEvent.cs

23 lines
547 B
C#
Raw Permalink Normal View History

using System.Numerics;
namespace Content.Shared.Throwing;
[ByRefEvent]
public struct BeforeThrowEvent
2022-07-27 19:28:23 -04:00
{
public BeforeThrowEvent(EntityUid itemUid, Vector2 direction, float throwSpeed, EntityUid playerUid)
2022-07-27 19:28:23 -04:00
{
ItemUid = itemUid;
Direction = direction;
ThrowSpeed = throwSpeed;
PlayerUid = playerUid;
2022-07-27 19:28:23 -04:00
}
public EntityUid ItemUid { get; set; }
public Vector2 Direction { get; }
public float ThrowSpeed { get; set;}
public EntityUid PlayerUid { get; }
public bool Cancelled = false;
2022-07-27 19:28:23 -04:00
}