Example #1
0
    public void unequipSlot(CharacterSlots slot)
    {
        GEquippableItem currentItem = slots [(int)slot];

        foreach (KeyValuePair <CharacterSlots, string> entry in currentItem.resource_identifiers)
        {
            slots[(int)entry.Key] = null;
        }
    }
Example #2
0
 public void equipItem(GEquippableItem item)
 {
     foreach(KeyValuePair<CharacterSlots, string> entry in item.resource_identifiers) {
         if(slotContainsAnyItem(entry.Key)) {
             unequipSlot(entry.Key);
         }
         slots[(int)entry.Key] = item;
     }
 }
Example #3
0
 public void equipItem(GEquippableItem item)
 {
     foreach (KeyValuePair <CharacterSlots, string> entry in item.resource_identifiers)
     {
         if (slotContainsAnyItem(entry.Key))
         {
             unequipSlot(entry.Key);
         }
         slots[(int)entry.Key] = item;
     }
 }