2022-11-06 21:34:17 +01:00
|
|
|
|
using UnityEditor;
|
|
|
|
|
using UnityEngine;
|
2022-12-19 03:34:45 +01:00
|
|
|
|
using UnityEngine.EventSystems;
|
2022-11-06 21:34:17 +01:00
|
|
|
|
|
|
|
|
|
public interface DraggablePanelInterface
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Function to associate defined Drag&Drop behaviour to passed slot
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="slot"></param>
|
|
|
|
|
public ISlot SetupDragAndDropToSlot(ISlot slot);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void BeginDrag(ItemSlot itemSlot);
|
|
|
|
|
|
|
|
|
|
public void EndDrag(ItemSlot itemSlot);
|
|
|
|
|
|
|
|
|
|
public void Drag(ItemSlot itemSlot);
|
|
|
|
|
|
|
|
|
|
public void Drop(ItemSlot dropItemSlot);
|
|
|
|
|
|
2022-12-19 03:34:45 +01:00
|
|
|
|
public void MouseClick(ItemSlot itemSlot, PointerEventData eventData);
|
|
|
|
|
|
2022-11-06 21:34:17 +01:00
|
|
|
|
// supports function to use in Drop
|
|
|
|
|
public ISlot GetDraggedSlot();
|
|
|
|
|
}
|