Spill hand contents when dropping them in a fall (#3304)

* Spill hand contents when dropping them due to falling down

* Better approach

* cleanup

* grammar

* stupid
This commit is contained in:
Clyybber
2021-02-18 21:43:46 +01:00
committed by GitHub
parent 3766410178
commit c996021b5d
6 changed files with 50 additions and 33 deletions

View File

@@ -16,12 +16,15 @@ namespace Content.Shared.Interfaces.GameObjects.Components
public class DroppedEventArgs : EventArgs
{
public DroppedEventArgs(IEntity user)
public DroppedEventArgs(IEntity user, bool intentional)
{
User = user;
Intentional = intentional;
}
public IEntity User { get; }
public bool Intentional { get; }
}
/// <summary>
@@ -45,10 +48,16 @@ namespace Content.Shared.Interfaces.GameObjects.Components
/// </summary>
public IEntity Dropped { get; }
public DroppedMessage(IEntity user, IEntity dropped)
/// <summary>
/// If the item was dropped intentionally.
/// </summary>
public bool Intentional { get; }
public DroppedMessage(IEntity user, IEntity dropped, bool intentional)
{
User = user;
Dropped = dropped;
Intentional = intentional;
}
}
}