Remove InteractedWithEvent and friends. (#11939)
This commit is contained in:
@@ -1,17 +0,0 @@
|
||||
namespace Content.Shared.Item;
|
||||
|
||||
/// <summary>
|
||||
/// Raised on the item after they do any sort of interaction with an item,
|
||||
/// useful for when you want a component on the user to do something to the user
|
||||
/// E.g. forensics, disease, etc.
|
||||
/// </summary>
|
||||
public sealed class ItemInteractedWithEvent : EntityEventArgs
|
||||
{
|
||||
public EntityUid User;
|
||||
public EntityUid Item;
|
||||
public ItemInteractedWithEvent(EntityUid user, EntityUid item)
|
||||
{
|
||||
User = user;
|
||||
Item = item;
|
||||
}
|
||||
}
|
||||
@@ -111,14 +111,13 @@ public abstract class SharedItemSystem : EntitySystem
|
||||
if (args.Hands == null ||
|
||||
args.Using != null ||
|
||||
!args.CanAccess ||
|
||||
!args.CanInteract) //||
|
||||
//!_handsSystem.CanPickupAnyHand(args.User, args.Target, handsComp: args.Hands, item: component))
|
||||
!args.CanInteract ||
|
||||
!_handsSystem.CanPickupAnyHand(args.User, args.Target, handsComp: args.Hands, item: component))
|
||||
return;
|
||||
|
||||
InteractionVerb verb = new();
|
||||
// TODO ITEM
|
||||
//verb.Act = () => _handsSystem.TryPickupAnyHand(args.User, args.Target, checkActionBlocker: false,
|
||||
// handsComp: args.Hands, item: component);
|
||||
verb.Act = () => _handsSystem.TryPickupAnyHand(args.User, args.Target, checkActionBlocker: false,
|
||||
handsComp: args.Hands, item: component);
|
||||
verb.IconTexture = "/Textures/Interface/VerbIcons/pickup.svg.192dpi.png";
|
||||
|
||||
// if the item already in a container (that is not the same as the user's), then change the text.
|
||||
|
||||
@@ -1,17 +0,0 @@
|
||||
namespace Content.Shared.Item;
|
||||
|
||||
/// <summary>
|
||||
/// Raised on the user after they do any sort of interaction with an item,
|
||||
/// useful for when you want a component on the user to do something to the item.
|
||||
/// E.g. forensics, disease, etc.
|
||||
/// </summary>
|
||||
public sealed class UserInteractedWithItemEvent : EntityEventArgs
|
||||
{
|
||||
public EntityUid User;
|
||||
public EntityUid Item;
|
||||
public UserInteractedWithItemEvent(EntityUid user, EntityUid item)
|
||||
{
|
||||
User = user;
|
||||
Item = item;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user