Esempio n. 1
0
        public static int CountTotalOfEach(Item[] collection, ISet <int> item_types)
        {
            var set   = ItemFinderHelpers.FindIndexOfEach(collection, item_types);
            int total = 0;

            foreach (int idx in set)
            {
                total += collection[idx].stack;
            }
            return(total);
        }
 public static SortedSet <int> FindIndexOfEachItemInCollection(Item[] collection, ISet <int> item_types)
 {
     return((SortedSet <int>)ItemFinderHelpers.FindIndexOfEach(collection, item_types));
 }