Throwing event improvements (#10055)

This commit is contained in:
Rane
2022-07-27 19:28:23 -04:00
committed by GitHub
parent 9020ec6045
commit 38a8a22e5a
4 changed files with 39 additions and 8 deletions

View File

@@ -0,0 +1,18 @@
namespace Content.Shared.Throwing
{
public sealed class BeforeThrowEvent : HandledEntityEventArgs
{
public BeforeThrowEvent(EntityUid itemUid, Vector2 direction, float throwStrength, EntityUid playerUid)
{
ItemUid = itemUid;
Direction = direction;
ThrowStrength = throwStrength;
PlayerUid = playerUid;
}
public EntityUid ItemUid { get; set; }
public Vector2 Direction { get; }
public float ThrowStrength { get; set;}
public EntityUid PlayerUid { get; }
}
}