示例#1
0
 public void PreLoadResource(ref ActorPreloadTab loadInfo, LoaderHelper loadHelper)
 {
     if (this.SpawnType == ESpawnObjectType.Tailsman)
     {
         CharmLib dataByKey = GameDataMgr.charmLib.GetDataByKey((long)this.ConfigId);
         if (dataByKey != null)
         {
             for (int i = 0; i < 10; i++)
             {
                 if (dataByKey.astCharmId[i].iParam == 0)
                 {
                     break;
                 }
                 int        iParam = dataByKey.astCharmId[i].iParam;
                 ShenFuInfo info   = GameDataMgr.shenfuBin.GetDataByKey((long)iParam);
                 if (info != null)
                 {
                     AssetLoadBase item = new AssetLoadBase {
                         assetPath = StringHelper.UTF8BytesToString(ref info.szShenFuResPath)
                     };
                     loadInfo.mesPrefabs.Add(item);
                     loadHelper.AnalyseSkillCombine(ref loadInfo, info.iBufId);
                 }
             }
         }
     }
 }
示例#2
0
 public void PreLoadResource(ref ActorPreloadTab loadInfo, Dictionary <string, bool> ageCheckerSet, LoaderHelper loadHelper)
 {
     if (this.TimingActionsInter != null)
     {
         int num = this.TimingActionsInter.Length;
         for (int i = 0; i < num; i++)
         {
             if (!string.IsNullOrEmpty(this.TimingActionsInter[i].ActionName) && !ageCheckerSet.ContainsKey(this.TimingActionsInter[i].ActionName))
             {
                 AssetLoadBase assetLoadBase = default(AssetLoadBase);
                 assetLoadBase.assetPath = this.TimingActionsInter[i].ActionName;
                 loadInfo.ageActions.Add(assetLoadBase);
                 ageCheckerSet.Add(this.TimingActionsInter[i].ActionName, true);
             }
         }
     }
     if (this.TriggerType == EGlobalTriggerAct.TriggerBuff)
     {
         loadHelper.AnalyseSkillCombine(ref loadInfo, this.EnterUniqueId);
         loadHelper.AnalyseSkillCombine(ref loadInfo, this.LeaveUniqueId);
         loadHelper.AnalyseSkillCombine(ref loadInfo, this.UpdateUniqueId);
     }
 }
示例#3
0
 public void PreLoadResource(TriggerActionWrapper triggerActionWrapper, ref ActorPreloadTab loadInfo, LoaderHelper loadHelper)
 {
     if (triggerActionWrapper != null)
     {
         ShenFuInfo dataByKey = GameDataMgr.shenfuBin.GetDataByKey((long)triggerActionWrapper.UpdateUniqueId);
         if (dataByKey != null)
         {
             AssetLoadBase item = new AssetLoadBase {
                 assetPath = StringHelper.UTF8BytesToString(ref dataByKey.szShenFuResPath)
             };
             loadInfo.mesPrefabs.Add(item);
             loadHelper.AnalyseSkillCombine(ref loadInfo, dataByKey.iBufId);
         }
     }
 }
示例#4
0
        public static void PreLoadShenfuResource(int shenfuId, ref ActorPreloadTab loadInfo, LoaderHelper loadHelper)
        {
            ShenFuInfo dataByKey = GameDataMgr.shenfuBin.GetDataByKey((long)shenfuId);

            if (dataByKey == null)
            {
                return;
            }
            AssetLoadBase assetLoadBase = new AssetLoadBase
            {
                assetPath = StringHelper.UTF8BytesToString(ref dataByKey.szShenFuResPath)
            };

            loadInfo.mesPrefabs.Add(assetLoadBase);
            loadHelper.AnalyseSkillCombine(ref loadInfo, dataByKey.iBufId);
        }