Files
crystall-punk-14/Content.Shared/Interaction/Events/UseInHandEvent.cs

29 lines
783 B
C#
Raw Permalink Normal View History

2024-01-03 21:33:09 -04:00
using Content.Shared.Clothing.EntitySystems;
using Content.Shared.Timing;
2022-03-13 01:33:23 +13:00
using JetBrains.Annotations;
namespace Content.Shared.Interaction.Events;
/// <summary>
/// Raised when using the entity in your hands.
/// </summary>
[PublicAPI]
public sealed class UseInHandEvent : HandledEntityEventArgs
{
/// <summary>
/// Entity holding the item in their hand.
/// </summary>
2024-01-03 21:33:09 -04:00
public EntityUid User;
/// <summary>
/// Whether or not to apply a UseDelay when used.
/// Mostly used by the <see cref="ClothingSystem"/> quick-equip to not apply the delay to entities that have the <see cref="UseDelayComponent"/>.
/// </summary>
public bool ApplyDelay = true;
2022-03-13 01:33:23 +13:00
public UseInHandEvent(EntityUid user)
{
User = user;
}
}