示例#1
0
 // -----------------------------------------------------------------------------------
 //
 // -----------------------------------------------------------------------------------
 public int WarehouseSlotsFree()
 {
     return(UCE_playerWarehouse.Count(slot => slot.amount == 0));
 }
 // -----------------------------------------------------------------------------------
 //
 // -----------------------------------------------------------------------------------
 public int UCE_warehouseSlotsFree()
 {
     return(UCE_guildWarehouse.Count(slot => slot.amount == 0));
 }
示例#3
0
 // helper function to count the free slots
 public int InventorySlotsFree()
 {
     return(inventory.Count(slot => slot.amount == 0));
 }