private static void HandleBeforeInteract( EntityUid uid, HandVirtualPullComponent component, BeforeInteractEvent args) { // No interactions with a virtual pull, please. args.Handled = true; }
private async Task <bool> InteractDoBefore( IEntity user, IEntity used, IEntity?target, EntityCoordinates clickLocation, bool canReach) { var ev = new BeforeInteractEvent(user, used, target, clickLocation, canReach); RaiseLocalEvent(used.Uid, ev, false); return(ev.Handled); }