Example #1
0
        /// <summary>
        /// Called whenever a new item has been assigned to an InputStation
        /// </summary>
        /// <param name="item">The assigned item.</param>
        /// <param name="inputStation">The InputStation the item is assigned to.</param>
        /// <param name="pod">The pod to store this item in.</param>
        public void NewItemBundleAssignedToStation(ItemBundle item, InputStation inputStation, Pod pod)
        {
            InsertRequest request = new InsertRequest(item, inputStation, pod);

            _availableStoreRequests.Add(request);
            if (request.Station != null)
            {
                _availableStoreRequestsPerStation[request.Station].Add(request);
                request.Station.StatCurrentlyOpenRequests = _availableStoreRequestsPerStation[request.Station].Count;
            }
            if (request.Pod != null)
            {
                _availableStoreRequestsPerPod[request.Pod].Add(request);
            }
        }