Esempio n. 1
0
        public static int TotalPrecalculatedItemsStack(this SlotGroup slotGroup, bool usePending = true)
        {
            if (slotGroup == null)
            {
                return(0);
            }

            int pending     = usePending ? PendingHaulJobsTracker.GetPendingStack(slotGroup) : 0;
            int inSlotGroup = HeldItemsCounter.GetTotalItemsStack(slotGroup);

            return(pending + inSlotGroup);
        }
        public static void TestOutput()
        {
#if DEBUG
            if (heldItems.Count != 0)
            {
                var x = heldItems.ElementAt(0).Value;
                foreach (var y in x)
                {
                    Log.Message($"{y.Key} : {y.Value} held, and an extra {PendingHaulJobsTracker.GetPendingStack(y.Key)} is pending");
                }
            }
#endif
        }