Пример #1
0
        public bool HasAvailableHauls(out HaulProvider haulAvailable)
        {
            haulAvailable = null;
            foreach (var haul in hauls)
            {
                if (haul.HasAvailableHauls())
                {
                    haulAvailable = haul;
                    return(true);
                }
            }

            return(false);
        }
Пример #2
0
 private IEnumerable <Task> GetHaulWork(HaulProvider haul)
 => haul.GetHaulTasks()
 .Prepend(TaskBegin())
 .Append(TaskVacate())
 .Append(TaskEnd());