Пример #1
0
 public static void Preload(ref ActorPreloadTab preloadTab)
 {
     preloadTab.AddSprite(S_kn_Tower_Icon);
     preloadTab.AddSprite(S_Base_blue_Icon);
     preloadTab.AddSprite(S_Dragon_big_Icon);
     preloadTab.AddSprite(S_Dragon_small_Icon);
     preloadTab.AddSprite(S_kn_dragon_Icon);
 }
 public static void Preload(ref ActorPreloadTab preloadTab)
 {
     preloadTab.AddSprite(KillNotify.building_icon);
     preloadTab.AddSprite(KillNotify.base_icon);
     preloadTab.AddSprite(KillNotify.monster_icon);
     preloadTab.AddSprite(KillNotify.dragon_icon);
     preloadTab.AddSprite(KillNotify.yeguai_icon);
     preloadTab.AddSprite(KillNotify.blue_cannon_icon);
     preloadTab.AddSprite(KillNotify.red_cannon_icon);
     preloadTab.AddSprite(KillNotify.blue_soldier_icon);
     preloadTab.AddSprite(KillNotify.red_soldier_icon);
 }
Пример #3
0
 public void BuildEquipInBattle(ref ActorPreloadTab result)
 {
     Dictionary <long, object> .Enumerator enumerator = GameDataMgr.m_equipInBattleDatabin.GetEnumerator();
     while (enumerator.MoveNext())
     {
         KeyValuePair <long, object> current          = enumerator.get_Current();
         ResEquipInBattle            resEquipInBattle = current.get_Value() as ResEquipInBattle;
         if (resEquipInBattle != null)
         {
             string path = CUIUtility.s_Sprite_System_BattleEquip_Dir + StringHelper.UTF8BytesToString(ref resEquipInBattle.szIcon);
             result.AddSprite(path);
             if (resEquipInBattle.astEffectCombine != null && resEquipInBattle.astEffectCombine.Length > 0)
             {
                 for (int i = 0; i < resEquipInBattle.astEffectCombine.Length; i++)
                 {
                     uint dwID = resEquipInBattle.astEffectCombine[i].dwID;
                     this.AnalyseSkillCombine(ref result, (int)dwID);
                 }
             }
             if (resEquipInBattle.astPassiveSkill != null && resEquipInBattle.astPassiveSkill.Length > 0)
             {
                 for (int j = 0; j < resEquipInBattle.astPassiveSkill.Length; j++)
                 {
                     if (resEquipInBattle.astPassiveSkill[j].dwID > 0u)
                     {
                         this.AnalysePassiveSkill(ref result, (int)resEquipInBattle.astPassiveSkill[j].dwID);
                     }
                 }
             }
         }
     }
 }
Пример #4
0
 public static void Preload(ref ActorPreloadTab preloadTab)
 {
     for (int i = 1; i <= 4; i++)
     {
         preloadTab.AddSprite(CSkillData.GetEffectSlotBg((SkillEffectType)i));
     }
 }
Пример #5
0
 public static void Preload(ref ActorPreloadTab preloadTab)
 {
     GameDataMgr.signalDatabin.Reload();
     Dictionary <long, object> .Enumerator enumerator = GameDataMgr.signalDatabin.GetEnumerator();
     while (enumerator.MoveNext())
     {
         KeyValuePair <long, object> current = enumerator.get_Current();
         ResSignalInfo resSignalInfo         = (ResSignalInfo)current.get_Value();
         if (resSignalInfo != null && !string.IsNullOrEmpty(resSignalInfo.szRealEffect))
         {
             preloadTab.AddSprite(resSignalInfo.szRealEffect);
         }
         if (resSignalInfo != null && !string.IsNullOrEmpty(resSignalInfo.szUIIcon))
         {
             preloadTab.AddSprite(resSignalInfo.szUIIcon);
         }
     }
 }
Пример #6
0
 public static void Preload(ref ActorPreloadTab preloadTab)
 {
     preloadTab.AddSprite(building_icon);
     preloadTab.AddSprite(monster_icon);
     preloadTab.AddSprite(dragon_icon);
     preloadTab.AddSprite(yeguai_icon);
     preloadTab.AddSprite(blue_cannon_icon);
     preloadTab.AddSprite(red_cannon_icon);
     preloadTab.AddSprite(blue_soldier_icon);
     preloadTab.AddSprite(red_soldier_icon);
 }
 public static void Preload(ref ActorPreloadTab preloadTab)
 {
     preloadTab.AddSprite(CSignalTipShower.S_kn_Tower_Icon);
     preloadTab.AddSprite(CSignalTipShower.S_Base_blue_Icon);
     preloadTab.AddSprite(CSignalTipShower.S_Dragon_big_Icon);
     preloadTab.AddSprite(CSignalTipShower.S_Dragon_small_Icon);
     preloadTab.AddSprite(CSignalTipShower.S_kn_dragon_Icon);
     preloadTab.AddSprite(CSignalTipShower.S_Bg_Green);
     preloadTab.AddSprite(CSignalTipShower.S_Bg_Blue);
 }
Пример #8
0
        public static void Preload(ref ActorPreloadTab preloadTab)
        {
            ResSignalInfo info = null;

            foreach (KeyValuePair <long, object> pair in GameDataMgr.signalDatabin)
            {
                info = (ResSignalInfo)pair.Value;
                if ((info != null) && !string.IsNullOrEmpty(info.szRealEffect))
                {
                    preloadTab.AddSprite(info.szRealEffect);
                }
            }
        }
Пример #9
0
 public void AnalyseSkillCombine(ref ActorPreloadTab loadInfo, int combineId)
 {
     if (combineId > 0)
     {
         ResSkillCombineCfgInfo dataByKey = GameDataMgr.skillCombineDatabin.GetDataByKey((long)combineId);
         if (dataByKey != null)
         {
             AssetLoadBase item = new AssetLoadBase {
                 assetPath = StringHelper.UTF8BytesToString(ref dataByKey.szPrefab)
             };
             string checkerKey = this.GetCheckerKey(item.assetPath, loadInfo.MarkID);
             if (!this.ageCheckerSet.ContainsKey(checkerKey))
             {
                 loadInfo.ageActions.Add(item);
                 this.ageCheckerSet.Add(checkerKey, true);
             }
             if ((dataByKey.bIsShowBuff == 1) && !string.IsNullOrEmpty(dataByKey.szIconPath))
             {
                 string path = CUIUtility.s_Sprite_Dynamic_Skill_Dir + dataByKey.szIconPath;
                 if (!loadInfo.IsExistsSprite(path))
                 {
                     loadInfo.AddSprite(path);
                 }
             }
             if ((dataByKey.astSkillFuncInfo != null) && (dataByKey.astSkillFuncInfo.Length > 0))
             {
                 for (int i = 0; i < dataByKey.astSkillFuncInfo.Length; i++)
                 {
                     ResDT_SkillFunc func = dataByKey.astSkillFuncInfo[i];
                     if (((((func.dwSkillFuncType == 0x1c) || (func.dwSkillFuncType == 0x21)) || (((func.dwSkillFuncType == 0x36) || (func.dwSkillFuncType == 0x37)) || (func.dwSkillFuncType == 0x1b))) && (func.astSkillFuncParam != null)) && (func.astSkillFuncParam.Length != 0))
                     {
                         int markId  = 0;
                         int skillID = 0;
                         int iParam  = 0;
                         if (func.astSkillFuncParam[0] != null)
                         {
                             markId = func.astSkillFuncParam[0].iParam;
                         }
                         if (func.astSkillFuncParam[1] != null)
                         {
                             skillID = func.astSkillFuncParam[1].iParam;
                         }
                         if (func.astSkillFuncParam[5] != null)
                         {
                             iParam = func.astSkillFuncParam[5].iParam;
                         }
                         if (func.dwSkillFuncType == 0x1c)
                         {
                             this.AnalyseSkillMark(ref loadInfo, markId);
                         }
                         else if (func.dwSkillFuncType == 0x21)
                         {
                             if (combineId != markId)
                             {
                                 this.AnalyseSkillCombine(ref loadInfo, markId);
                             }
                         }
                         else if (func.dwSkillFuncType == 0x36)
                         {
                             this.AnalyseSkillCombine(ref loadInfo, markId);
                         }
                         else if (func.dwSkillFuncType == 0x37)
                         {
                             this.AnalyseSkill(ref loadInfo, skillID);
                         }
                         else if (func.dwSkillFuncType == 0x1b)
                         {
                             this.AnalyseSkillCombine(ref loadInfo, iParam);
                         }
                     }
                 }
             }
         }
     }
 }
Пример #10
0
 public void AnalyseSkillCombine(ref ActorPreloadTab loadInfo, int combineId)
 {
     if (combineId > 0)
     {
         ResSkillCombineCfgInfo dataByKey = GameDataMgr.skillCombineDatabin.GetDataByKey((long)combineId);
         if (dataByKey != null)
         {
             if (!this.skillCombineList.Contains((long)combineId))
             {
                 this.skillCombineList.Add((long)combineId);
             }
             AssetLoadBase assetLoadBase = default(AssetLoadBase);
             assetLoadBase.assetPath = StringHelper.UTF8BytesToString(ref dataByKey.szPrefab);
             string checkerKey = this.GetCheckerKey(assetLoadBase.assetPath, loadInfo.MarkID);
             if (!this.ageCheckerSet.ContainsKey(checkerKey))
             {
                 loadInfo.ageActions.Add(assetLoadBase);
                 this.ageCheckerSet.Add(checkerKey, true);
             }
             if (dataByKey.bIsShowBuff == 1 && !string.IsNullOrEmpty(dataByKey.szIconPath))
             {
                 string path = CUIUtility.s_Sprite_Dynamic_Skill_Dir + dataByKey.szIconPath;
                 if (!loadInfo.IsExistsSprite(path))
                 {
                     loadInfo.AddSprite(path);
                 }
             }
             if (dataByKey.astSkillFuncInfo != null && dataByKey.astSkillFuncInfo.Length > 0)
             {
                 for (int i = 0; i < dataByKey.astSkillFuncInfo.Length; i++)
                 {
                     ResDT_SkillFunc resDT_SkillFunc = dataByKey.astSkillFuncInfo[i];
                     if ((resDT_SkillFunc.bSkillFuncType == 28 || resDT_SkillFunc.bSkillFuncType == 33 || resDT_SkillFunc.bSkillFuncType == 54 || resDT_SkillFunc.bSkillFuncType == 55 || resDT_SkillFunc.bSkillFuncType == 27 || resDT_SkillFunc.bSkillFuncType == 84 || resDT_SkillFunc.bSkillFuncType == 32) && resDT_SkillFunc.astSkillFuncParam != null && resDT_SkillFunc.astSkillFuncParam.Length != 0)
                     {
                         int num        = 0;
                         int num2       = 0;
                         int combineId2 = 0;
                         int combineId3 = 0;
                         if (resDT_SkillFunc.astSkillFuncParam[0] != null)
                         {
                             num = resDT_SkillFunc.astSkillFuncParam[0].iParam;
                         }
                         if (resDT_SkillFunc.astSkillFuncParam[1] != null)
                         {
                             num2 = resDT_SkillFunc.astSkillFuncParam[1].iParam;
                         }
                         if (resDT_SkillFunc.astSkillFuncParam[5] != null)
                         {
                             combineId2 = resDT_SkillFunc.astSkillFuncParam[5].iParam;
                         }
                         if (resDT_SkillFunc.astSkillFuncParam[6] != null)
                         {
                             combineId3 = resDT_SkillFunc.astSkillFuncParam[6].iParam;
                         }
                         if (resDT_SkillFunc.bSkillFuncType == 28)
                         {
                             this.AnalyseSkillMark(ref loadInfo, num);
                         }
                         else if (resDT_SkillFunc.bSkillFuncType == 33)
                         {
                             if (combineId != num)
                             {
                                 this.AnalyseSkillCombine(ref loadInfo, num);
                             }
                         }
                         else if (resDT_SkillFunc.bSkillFuncType == 54)
                         {
                             this.AnalyseSkillCombine(ref loadInfo, num);
                         }
                         else if (resDT_SkillFunc.bSkillFuncType == 55)
                         {
                             this.AnalyseSkill(ref loadInfo, num2);
                         }
                         else if (resDT_SkillFunc.bSkillFuncType == 27)
                         {
                             this.AnalyseSkillCombine(ref loadInfo, combineId2);
                             this.AnalyseSkillCombine(ref loadInfo, combineId3);
                         }
                         else if (resDT_SkillFunc.bSkillFuncType == 84)
                         {
                             this.AnalyseSkillCombine(ref loadInfo, num);
                             this.AnalyseSkillCombine(ref loadInfo, num2);
                         }
                         else if (resDT_SkillFunc.bSkillFuncType == 32)
                         {
                             this.AnalyseSkillCombine(ref loadInfo, combineId3);
                         }
                     }
                 }
             }
         }
     }
 }