Beispiel #1
0
        private void LoadCareer(JSONNode N)
        {
            string             id           = N[BattleConstants.ID];
            string             name         = N[BattleConstants.NAME];
            List <string>      skillIds     = this.GetList(N[BattleConstants.SKILLS]);
            List <BattleSkill> careerSkills = new List <BattleSkill>();

            foreach (var skillId in skillIds)
            {
                careerSkills.Add(skills[skillId]);
            }
            BattleCareer career = new BattleCareer(id, name, careerSkills);

            careers[id] = career;
        }
Beispiel #2
0
 public void addCareer(BattleCareer career)
 {
     this.careers.Add(career);
 }
Beispiel #3
0
 private void LoadCareer(JSONNode N)
 {
     string id = N[BattleConstants.ID];
     string name = N[BattleConstants.NAME];
     List<string> skillIds = this.GetList(N[BattleConstants.SKILLS]);
     List<BattleSkill> careerSkills = new List<BattleSkill>();
     foreach(var skillId in skillIds){
         careerSkills.Add(skills[skillId]);
     }
     BattleCareer career = new BattleCareer(id, name, careerSkills);
     careers[id] = career;
 }