Пример #1
0
        public SchoolCurriculum AsSchoolCurriculum(SchoolWorld world)
        {
            SchoolCurriculum result = new SchoolCurriculum();

            foreach (CurriculumDesign curr in Curricula)
            {
                result.Add(curr.AsSchoolCurriculum(world));
            }

            return(result);
        }
Пример #2
0
        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);
        }
Пример #3
0
        public SchoolCurriculum AsSchoolCurriculum(SchoolWorld world)
        {
            SchoolCurriculum result = new SchoolCurriculum();
            foreach (CurriculumDesign curr in Curricula)
                result.Add(curr.AsSchoolCurriculum(world));

            return result;
        }
Пример #4
0
        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;
        }