public static int get_PositionIndex(IntPtr l) { int result; try { BusinessCardHeroSet businessCardHeroSet = (BusinessCardHeroSet)LuaObject.checkSelf(l); LuaObject.pushValue(l, true); LuaObject.pushValue(l, businessCardHeroSet.PositionIndex); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int get_Action(IntPtr l) { int result; try { BusinessCardHeroSet businessCardHeroSet = (BusinessCardHeroSet)LuaObject.checkSelf(l); LuaObject.pushValue(l, true); LuaObject.pushEnum(l, (int)businessCardHeroSet.Action); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int constructor(IntPtr l) { int result; try { BusinessCardHeroSet o = new BusinessCardHeroSet(); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int FromProtocol_s(IntPtr l) { int result; try { ProBusinessCardHeroSet pbHeroSet; LuaObject.checkType <ProBusinessCardHeroSet>(l, 1, out pbHeroSet); BusinessCardHeroSet o = BusinessCardHeroSet.FromProtocol(pbHeroSet); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int ToProtocols_s(IntPtr l) { int result; try { List <BusinessCardHeroSet> heroSets; LuaObject.checkType <List <BusinessCardHeroSet> >(l, 1, out heroSets); List <ProBusinessCardHeroSet> o = BusinessCardHeroSet.ToProtocols(heroSets); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int set_Action(IntPtr l) { int result; try { BusinessCardHeroSet businessCardHeroSet = (BusinessCardHeroSet)LuaObject.checkSelf(l); HeroActionType action; LuaObject.checkEnum <HeroActionType>(l, 2, out action); businessCardHeroSet.Action = action; LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int set_HeroId(IntPtr l) { int result; try { BusinessCardHeroSet businessCardHeroSet = (BusinessCardHeroSet)LuaObject.checkSelf(l); int heroId; LuaObject.checkType(l, 2, out heroId); businessCardHeroSet.HeroId = heroId; LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
// Token: 0x0600BE81 RID: 48769 RVA: 0x0035367C File Offset: 0x0035187C public void SummonHeroTeamShow() { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SummonHeroTeamShow_hotfix != null) { this.m_SummonHeroTeamShow_hotfix.call(new object[] { this }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; this.m_task.CustomLoadAsset(delegate { foreach (BusinessCardHeroSet businessCardHeroSet in this.m_playerContext.BusinessCard.SetInfo.Heroes) { Hero hero = this.m_playerContext.GetHero(businessCardHeroSet.HeroId); string heroModelAssetPath = UIUtility.GetHeroModelAssetPath(hero); this.m_task.CollectAssetWrap(heroModelAssetPath); } }, delegate { int num = 0; while (num < this.m_playerContext.BusinessCard.SetInfo.Heroes.Count && num < this.m_charGroupNode.transform.childCount) { BusinessCardHeroSet businessCardHeroSet = this.m_playerContext.BusinessCard.SetInfo.Heroes[num]; Hero hero = this.m_playerContext.GetHero(businessCardHeroSet.HeroId); string heroModelAssetPath = UIUtility.GetHeroModelAssetPath(hero); GameObject asset = AssetUtility.Instance.GetAsset <GameObject>(heroModelAssetPath); Transform child = this.m_charGroupNode.transform.GetChild(num); GameObject gameObject = GameObjectUtility.CloneGameObject(asset, child); EventTriggerListener eventTriggerListener = gameObject.AddComponent <EventTriggerListener>(); eventTriggerListener.onClick = (EventTriggerListener.VoidDelegate)Delegate.Combine(eventTriggerListener.onClick, new EventTriggerListener.VoidDelegate(this.OnCharClick)); SkeletonAnimation component = gameObject.GetComponent <SkeletonAnimation>(); this.PlayAnimation(component, businessCardHeroSet.Action, true); this.SetCharDirection(child.gameObject, businessCardHeroSet.Direction == HeroDirectionType.Right); this.m_roleSkeletonList.Add(gameObject.GetComponent <SkeletonAnimation>()); num++; } this.m_charGroupNode.transform.position = this.arPlaneTrace.centerPos; this.m_charGroupNode.transform.rotation = this.arPlaneTrace.centerRotation; }); }
// Token: 0x0600C29C RID: 49820 RVA: 0x003606D0 File Offset: 0x0035E8D0 private void BusinessCardUIController_OnUpdateHeroSet(List <BusinessCardHeroSet> heroSetList) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_BusinessCardUIController_OnUpdateHeroSetList ` 1_hotfix != null) { this.m_BusinessCardUIController_OnUpdateHeroSetList ` 1_hotfix.call(new object[] { this, heroSetList }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; List <BusinessCardHeroSet> list = new List <BusinessCardHeroSet>(); int i; for (i = 0; i < 5; i++) { BusinessCardHeroSet businessCardHeroSet = heroSetList.Find((BusinessCardHeroSet heroSet) => heroSet.PositionIndex == i); if (businessCardHeroSet != null) { list.Add(businessCardHeroSet); } } BusinessCardHeroSetUpdateNetTask businessCardHeroSetUpdateNetTask = new BusinessCardHeroSetUpdateNetTask(list); businessCardHeroSetUpdateNetTask.EventOnStop += delegate(Task task) { BusinessCardHeroSetUpdateNetTask businessCardHeroSetUpdateNetTask2 = task as BusinessCardHeroSetUpdateNetTask; if (businessCardHeroSetUpdateNetTask2.Result == 0) { base.StartUpdatePipeLine(null, false, false, true); this.m_businessCardUIController.SetRandomShowToggleOff(); } else { CommonUIController.Instance.ShowErrorMessage(businessCardHeroSetUpdateNetTask2.Result, 2f, null, true); } }; businessCardHeroSetUpdateNetTask.Start(null); }