bool IDraggable.CanDrop(CanDropEvent args) { return(true); }
bool IDraggable.CanDrop(CanDropEvent args) { return(args.Target.TryGetComponent(out SharedPlaceableSurfaceComponent? placeable) && placeable.IsPlaceable); }
bool IDraggable.CanDrop(CanDropEvent args) { return(args.Target.HasComponent <SharedStrapComponent>()); }
bool IDraggable.CanDrop(CanDropEvent args) { return(IoCManager.Resolve <IEntityManager>().HasComponent <SharedStrapComponent>(args.Target)); }
bool IDraggable.CanDrop(CanDropEvent args) { return(_entMan.TryGetComponent(args.Target, out PlaceableSurfaceComponent? placeable) && placeable.IsPlaceable); }
bool IDraggable.CanDrop(CanDropEvent args) { return(args.Target != args.Dragged && args.Target == args.User && CanBeStripped(args.User)); }
public bool CanDrop(CanDropEvent args) { return(true); }
// TODO: ECS this out!, my guess CanDropEvent should be client side only and then "ValidDragDrop" in the DragDropSystem needs a little touch // But this may lead to creating client-side systems for every Draggable component subbed to CanDrop. Actually those systems could control // CanDropOn behaviors as well (IDragDropOn) bool IDraggable.CanDrop(CanDropEvent args) { return(Type != ButcheringType.Knife); }