2022-06-05 01:57:57 +02:00
|
|
|
using System.Collections;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using UnityEngine;
|
|
|
|
using UnityEngine.UI;
|
|
|
|
using UnityEngine.EventSystems;
|
|
|
|
using System;
|
|
|
|
|
|
|
|
public interface ISlot
|
|
|
|
{
|
|
|
|
int Number { get; set; }
|
2022-11-19 17:02:31 +01:00
|
|
|
EquippableItem Item { get; set; }
|
2022-06-05 01:57:57 +02:00
|
|
|
|
|
|
|
// enum typ dziecka
|
|
|
|
// A : enum A
|
|
|
|
// B : enum B
|
|
|
|
event Action<ItemSlot> OnBeginDragEvent;
|
|
|
|
event Action<ItemSlot> OnEndDragEvent;
|
|
|
|
event Action<ItemSlot> OnDragEvent;
|
|
|
|
event Action<ItemSlot> OnDropEvent;
|
|
|
|
//(B)Islot // as B
|
|
|
|
|
2022-11-19 17:02:31 +01:00
|
|
|
public void SetupSlot(int _number, EquippableItem _item, WarehousePanelController _PanelController);
|
|
|
|
public void SetItem(EquippableItem _item);
|
2022-06-05 01:57:57 +02:00
|
|
|
bool CanReceiveItem(Item item);
|
|
|
|
}
|