IItemContainer

 avatar
user_3183455
csharp
11 days ago
811 B
1
Indexable
Never
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);
    }
}
Leave a Comment