Predict wielding (#16275)

This commit is contained in:
metalgearsloth
2023-05-10 10:01:23 +10:00
committed by GitHub
parent bf5d706e70
commit 9946cbd7fe
12 changed files with 326 additions and 326 deletions

View File

@@ -0,0 +1,23 @@
namespace Content.Shared.Wieldable;
#region Events
/// <summary>
/// Raised on the item that has been unwielded.
/// </summary>
public sealed class ItemUnwieldedEvent : EntityEventArgs
{
public EntityUid? User;
/// <summary>
/// Whether the item is being forced to be unwielded, or if the player chose to unwield it themselves.
/// </summary>
public bool Force;
public ItemUnwieldedEvent(EntityUid? user = null, bool force=false)
{
User = user;
Force = force;
}
}
#endregion