public bool HasAvailableHauls(out HaulProvider haulAvailable) { haulAvailable = null; foreach (var haul in hauls) { if (haul.HasAvailableHauls()) { haulAvailable = haul; return(true); } } return(false); }
private IEnumerable <Task> GetHaulWork(HaulProvider haul) => haul.GetHaulTasks() .Prepend(TaskBegin()) .Append(TaskVacate()) .Append(TaskEnd());