Esempio n. 1
0
    public Equipment OnEquipSlot(Equipment equipment, Equipment.PartsType type)
    {
        int InvenIndex = (int)type;

        if (EmptySlot(InvenIndex))
        {
            Inventory[InvenIndex] = equipment;
        }

        else
        {
            return(ChangeSlot(equipment, InvenIndex));
        }

        return(null);
    }
Esempio n. 2
0
    public Equipment OffEEquipSlot(Equipment.PartsType type)
    {
        int InvenIndex = (int)type;

        return(ChangeSlot(null, InvenIndex));
    }