public int GetVacancySlotIndex(ESlotType slotType)
        {
            SlotList list = GetSlotList(slotType);

            if (null == list)
            {
                return(-1);
            }

            return(list.VacancyIndex());
        }
        public int AddItem(ItemObject itemObject, bool isNew = false)
        {
            ESlotType eSlotType    = GetSlotType(itemObject.protoId);
            SlotList  slotList     = GetSlotList(eSlotType);
            int       vacancyIndex = slotList.VacancyIndex();

            if (-1 == vacancyIndex)
            {
                return(InvalidIndex);
            }

            SetItem(slotList, itemObject, vacancyIndex, isNew);

            return(CodeIndex(eSlotType, vacancyIndex));
        }