Throwing event improvements (#10055)
This commit is contained in:
18
Content.Shared/Throwing/BeforeThrowEvent.cs
Normal file
18
Content.Shared/Throwing/BeforeThrowEvent.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user