コード例 #1
0
ファイル: BattleManager.cs プロジェクト: weimingtom/dokidoki
        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;
        }
コード例 #2
0
 public void addCareer(BattleCareer career)
 {
     this.careers.Add(career);
 }
コード例 #3
0
ファイル: BattleManager.cs プロジェクト: kesumu/dokidoki
 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;
 }