BeforeThrowEvent.cs 547 B

12345678910111213141516171819202122
  1. using System.Numerics;
  2. namespace Content.Shared.Throwing;
  3. [ByRefEvent]
  4. public struct BeforeThrowEvent
  5. {
  6. public BeforeThrowEvent(EntityUid itemUid, Vector2 direction, float throwSpeed, EntityUid playerUid)
  7. {
  8. ItemUid = itemUid;
  9. Direction = direction;
  10. ThrowSpeed = throwSpeed;
  11. PlayerUid = playerUid;
  12. }
  13. public EntityUid ItemUid { get; set; }
  14. public Vector2 Direction { get; }
  15. public float ThrowSpeed { get; set;}
  16. public EntityUid PlayerUid { get; }
  17. public bool Cancelled = false;
  18. }