public void SetLeaderSkill(string skillId)
 {
     if ("0" != skillId)
     {
         this.leaderSkill = MonsterSkillData.GetSkillMasterBySkillId(skillId);
     }
 }
 public void SetExtraCommonSkill(string skillId)
 {
     if (!string.IsNullOrEmpty(skillId))
     {
         this.extraCommonSkill = MonsterSkillData.GetSkillMasterBySkillId(skillId);
     }
 }
        public void SetUniqueSkill(string monsterId, string defaultSkillGroupSubId)
        {
            MonsterClientMaster monsterMasterByMonsterId = MonsterMaster.GetMonsterMasterByMonsterId(monsterId);

            if (monsterMasterByMonsterId != null)
            {
                this.uniqueSkill = MonsterSkillData.GetSkillMasterBySkillGroupId(monsterMasterByMonsterId.Simple.skillGroupId, defaultSkillGroupSubId);
            }
        }
 private static void CreateSkillGroupList(ref Dictionary <string, Dictionary <string, MonsterSkillClientMaster> > destSkillGroupList)
 {
     GameWebAPI.RespDataMA_GetSkillM.SkillM[] skillM = MasterDataMng.Instance().RespDataMA_SkillM.skillM;
     for (int i = 0; i < skillM.Length; i++)
     {
         if (skillM[i] != null)
         {
             MonsterSkillClientMaster skillMasterBySkillId = MonsterSkillData.GetSkillMasterBySkillId(skillM[i].skillId);
             if (skillMasterBySkillId != null)
             {
                 MonsterUniqueSkillData.AddSkillGroupData(skillMasterBySkillId, ref destSkillGroupList);
             }
         }
     }
 }
 private void SetMonsterData()
 {
     this.monsterMaster = MonsterMaster.GetMonsterMasterByMonsterId(this.userMonster.monsterId);
     this.uniqueSkill   = MonsterSkillData.GetSkillMasterBySkillGroupId(this.monsterMaster.Simple.skillGroupId, this.userMonster.defaultSkillGroupSubId);
     this.commonSkill   = MonsterSkillData.GetSkillMasterBySkillId(this.userMonster.commonSkillId);
     if (!string.IsNullOrEmpty(this.userMonster.extraCommonSkillId))
     {
         this.extraCommonSkill = MonsterSkillData.GetSkillMasterBySkillId(this.userMonster.extraCommonSkillId);
     }
     if ("0" != this.userMonster.leaderSkillId)
     {
         this.leaderSkill = MonsterSkillData.GetSkillMasterBySkillId(this.userMonster.leaderSkillId);
     }
     this.chipEquip.SetChipEquip(this.userMonster.userMonsterId);
 }
 private static void CreateSkillMasterClient(ref Dictionary <string, MonsterSkillClientMaster> destSimpleMasterList, ref Dictionary <string, Dictionary <string, MonsterSkillClientMaster> > destGroupMasterList)
 {
     GameWebAPI.RespDataMA_GetSkillM.SkillM[] skillM = MasterDataMng.Instance().RespDataMA_SkillM.skillM;
     for (int i = 0; i < skillM.Length; i++)
     {
         if (skillM[i] != null)
         {
             List <GameWebAPI.RespDataMA_GetSkillDetailM.SkillDetailM> list = new List <GameWebAPI.RespDataMA_GetSkillDetailM.SkillDetailM>();
             MonsterSkillData.GetSkillDetailMaster(skillM[i].skillId, ref list);
             if (0 < list.Count)
             {
                 MonsterSkillClientMaster monsterSkillClientMaster = new MonsterSkillClientMaster(skillM[i], list);
                 MonsterSkillData.AddSkillSimpleMaster(monsterSkillClientMaster, ref destSimpleMasterList);
                 if ("0" != monsterSkillClientMaster.Simple.skillGroupSubId)
                 {
                     MonsterSkillData.AddSkillGroupMaster(monsterSkillClientMaster, ref destGroupMasterList);
                 }
             }
         }
     }
 }
 public static void Initialize()
 {
     if (null == MasterDataMng.Instance() || MasterDataMng.Instance().RespDataMA_SkillM == null || MasterDataMng.Instance().RespDataMA_SkillM.skillM == null || MasterDataMng.Instance().RespDataMA_SkillDetailM == null || MasterDataMng.Instance().RespDataMA_SkillDetailM.convertSkillDetailM == null)
     {
         return;
     }
     if (MonsterSkillData.groupMasterList == null)
     {
         MonsterSkillData.groupMasterList = new Dictionary <string, Dictionary <string, MonsterSkillClientMaster> >();
     }
     else
     {
         MonsterSkillData.groupMasterList.Clear();
     }
     if (MonsterSkillData.simpleMasterList == null)
     {
         MonsterSkillData.simpleMasterList = new Dictionary <string, MonsterSkillClientMaster>();
     }
     else
     {
         MonsterSkillData.simpleMasterList.Clear();
     }
     MonsterSkillData.CreateSkillMasterClient(ref MonsterSkillData.simpleMasterList, ref MonsterSkillData.groupMasterList);
 }
 public void SetCommonSkill(string skillId)
 {
     this.commonSkill = MonsterSkillData.GetSkillMasterBySkillId(skillId);
 }
 public static MonsterSkillClientMaster GetSkillMasterBySkillId(int skillId)
 {
     return(MonsterSkillData.GetSkillMasterBySkillId(string.Format("{0}", skillId)));
 }