Ejemplo n.º 1
0
 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>());
 }
Ejemplo n.º 4
0
 bool IDraggable.CanDrop(CanDropEvent args)
 {
     return(IoCManager.Resolve <IEntityManager>().HasComponent <SharedStrapComponent>(args.Target));
 }
Ejemplo n.º 5
0
 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);
 }
Ejemplo n.º 8
0
 // 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);
 }