Exemplo n.º 1
0
 /// <summary>
 /// 服务器下发技能
 /// </summary>
 /// <param name="skillInfos">技能列表</param>
 /// <param name="addType">是首次推送或者升级</param>
 public void OnSkillAdd(Dictionary <uint, SkillInfo> skillInfos, GameCmd.SkillAddType addType)
 {
     if (null != skillInfos && skillInfos.Count != 0)
     {
         if (addType == SkillAddType.SkillAddType_Add)
         {
             Engine.Utility.EventEngine.Instance().DispatchEvent((int)Client.GameEventID.SKILLSYSTEM_ADDSKILL, skillInfos);
             //提示有歧义 是技能升级 还是玩家等级升级?
             //TipsManager.Instance.ShowTips(
             //   DataManager.Manager<TextManager>().GetLocalText(LocalTextType.Local_TXT_Notice_Upgrade));
         }
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// 服务器下发技能
 /// </summary>
 /// <param name="skillInfos">技能列表</param>
 /// <param name="addType">是首次推送或者升级</param>
 public void OnSkillAdd(Dictionary <uint, SkillInfo> skillInfos, GameCmd.SkillAddType addType)
 {
     if (null != skillInfos && skillInfos.Count != 0)
     {
         if (addType == SkillAddType.SkillAddType_Add)
         {
             Engine.Utility.EventEngine.Instance().DispatchEvent((int)Client.GameEventID.SKILLSYSTEM_ADDSKILL, skillInfos);
             TipsManager.Instance.ShowTips(
                 DataManager.Manager <TextManager>().GetLocalText(LocalTextType.Local_TXT_Notice_Upgrade));
         }
         //氏族技能
         DataManager.Manager <ClanManger>().OnPlayerSkillUpdate(skillInfos.Keys.ToList());
     }
 }