Predict wielding (#16275)
This commit is contained in:
23
Content.Shared/Wieldable/ItemUnwieldedEvent.cs
Normal file
23
Content.Shared/Wieldable/ItemUnwieldedEvent.cs
Normal 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
|
||||
Reference in New Issue
Block a user