public SchoolCurriculum AsSchoolCurriculum(SchoolWorld world) { SchoolCurriculum result = new SchoolCurriculum(); foreach (CurriculumDesign curr in Curricula) { result.Add(curr.AsSchoolCurriculum(world)); } return(result); }
public SchoolCurriculum AsSchoolCurriculum(SchoolWorld world) { SchoolCurriculum curriculum = new SchoolCurriculum(); if (!Enabled) { return(curriculum); } Tasks. Select(x => x.AsILearningTask(world)). Where(x => x != null). ToList(). ForEach(x => curriculum.Add(x)); return(curriculum); }
public SchoolCurriculum AsSchoolCurriculum(SchoolWorld world) { SchoolCurriculum result = new SchoolCurriculum(); foreach (CurriculumDesign curr in Curricula) result.Add(curr.AsSchoolCurriculum(world)); return result; }
public SchoolCurriculum AsSchoolCurriculum(SchoolWorld world) { SchoolCurriculum curriculum = new SchoolCurriculum(); if (!Enabled) return curriculum; Tasks. Select(x => x.AsILearningTask(world)). Where(x => x != null). ToList(). ForEach(x => curriculum.Add(x)); return curriculum; }