2023-07-08 14:08:32 +10:00
|
|
|
using System.Numerics;
|
|
|
|
|
|
2023-12-11 15:40:22 -08:00
|
|
|
namespace Content.Shared.Throwing;
|
|
|
|
|
|
|
|
|
|
[ByRefEvent]
|
|
|
|
|
public struct BeforeThrowEvent
|
2022-07-27 19:28:23 -04:00
|
|
|
{
|
2024-07-08 11:03:53 +02:00
|
|
|
public BeforeThrowEvent(EntityUid itemUid, Vector2 direction, float throwSpeed, EntityUid playerUid)
|
2022-07-27 19:28:23 -04:00
|
|
|
{
|
2023-12-11 15:40:22 -08:00
|
|
|
ItemUid = itemUid;
|
|
|
|
|
Direction = direction;
|
2024-07-08 11:03:53 +02:00
|
|
|
ThrowSpeed = throwSpeed;
|
2023-12-11 15:40:22 -08:00
|
|
|
PlayerUid = playerUid;
|
2022-07-27 19:28:23 -04:00
|
|
|
}
|
2023-12-11 15:40:22 -08:00
|
|
|
|
|
|
|
|
public EntityUid ItemUid { get; set; }
|
|
|
|
|
public Vector2 Direction { get; }
|
2024-07-08 11:03:53 +02:00
|
|
|
public float ThrowSpeed { get; set;}
|
2023-12-11 15:40:22 -08:00
|
|
|
public EntityUid PlayerUid { get; }
|
|
|
|
|
|
|
|
|
|
public bool Cancelled = false;
|
2022-07-27 19:28:23 -04:00
|
|
|
}
|