// -----------------------------------------------------------------------------------
 //
 // -----------------------------------------------------------------------------------
 public int GetUCE_warehouseIndexByName(string itemName)
 {
     return(UCE_guildWarehouse.FindIndex(slot => slot.amount > 0 && slot.item.name == itemName));
 }
Exemplo n.º 2
0
 // equipment ///////////////////////////////////////////////////////////////
 public int GetEquipmentIndexByName(string itemName)
 {
     return(equipment.FindIndex(slot => slot.amount > 0 && slot.item.name == itemName));
 }
Exemplo n.º 3
0
 // inventory ///////////////////////////////////////////////////////////////
 // helper function to find an item in the inventory
 public int GetInventoryIndexByName(string itemName)
 {
     return(inventory.FindIndex(slot => slot.amount > 0 && slot.item.name == itemName));
 }