IItemContainer
user_3183455
csharp
a year ago
811 B
15
Indexable
namespace CuongMono.Item
{
public interface IItemContainer<T> where T : Item
{
void AddSlot(int quanity);
IItemSlot<T> AddItem(IItemSlot<T> slot);
IItemSlot<T> GetItemByIndex(int index);
void RemoveItem(IItemSlot<T> slot);
void RemoveItemAtIndex(int index);
bool HasItem(IItemSlot<T> slot);
bool HasItemType(ItemType type);
bool HasRarity(Rarity rarity);
void SwapItem(int indexOne, int indexTwo);
IItemSlot<T> SwapItemLeftClick(IItemSlot<T> cursorItem, int indexItem);
IItemSlot<T> SwapItemRightClick(IItemSlot<T> cursorItem, int indexItem);
IItemSlot<T> SimplySwapItem(IItemSlot<T> cursorItem, IItemSlot<T> secondItem, int indexItem);
int GetTotalItem(IItemSlot<T> slot);
}
}Editor is loading...
Leave a Comment