Esempio n. 1
0
        public void GenerateOfferedCourses() //somehow provide some variable options here?
        {
            //convert the saved configs to course offerings
            foreach (CourseTemplate template in CourseTemplates)
            {
                CourseTemplate duplicate = new CourseTemplate(template.sourceNode, true); //creates a duplicate so the initial template is preserved
                duplicate.PopulateFromSourceNode(new Dictionary <string, string>());
                if (duplicate.Available)
                {
                    OfferedCourses.Add(duplicate);
                }
            }

            Debug.Log("[FS] Offering " + OfferedCourses.Count + " courses.");
            //fire an event to let other mods add available courses (where they can pass variables through then)
        }
Esempio n. 2
0
 public ActiveCourse(CourseTemplate template)
 {
     sourceNode = template.sourceNode;
     PopulateFromSourceNode(new Dictionary <string, string>(), template.sourceNode);
 }
Esempio n. 3
0
 public ActiveCourse(CourseTemplate template)
 {
     sourceNode = template.sourceNode;
     PopulateFromSourceNode(new Dictionary<string, string>(), template.sourceNode);
 }
Esempio n. 4
0
        public void GenerateOfferedCourses() //somehow provide some variable options here?
        {
            //convert the saved configs to course offerings
            foreach (CourseTemplate template in CourseTemplates)
            {
                CourseTemplate duplicate = new CourseTemplate(template.sourceNode); //creates a duplicate so the initial template is preserved
                duplicate.PopulateFromSourceNode(new Dictionary<string, string>());
                if (duplicate.Available)
                    OfferedCourses.Add(duplicate);
            }

            Debug.Log("[FS] Offering " + OfferedCourses.Count + " courses.");
            //fire an event to let other mods add available courses (where they can pass variables through then)
        }