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); } } } } }
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); } }
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); } } }
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); }