Beispiel #1
0
 private static void LoadSkills(SkillArrayList skills, XmlNodeList nodeList)
 {
     foreach (XmlElement elSkill in nodeList)
     {
         SkillType t = SkillType.Get(elSkill.GetAttribute("type"));
         Skill     s = new Skill(t);
         s.Level = Convert.ToInt32(elSkill.GetAttribute("level"));
         skills.Add(s);
     }
 }