// Token: 0x06006C25 RID: 27685 RVA: 0x001E48F0 File Offset: 0x001E2AF0 public int AddArenaBattleReportPlayBackData(ProArenaBattleReport pbArenaBattleReport) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_AddArenaBattleReportPlayBackDataProArenaBattleReport_hotfix != null) { return(Convert.ToInt32(this.m_AddArenaBattleReportPlayBackDataProArenaBattleReport_hotfix.call(new object[] { this, pbArenaBattleReport }))); } BJLuaObjHelper.IsSkipLuaHotfix = false; ArenaBattleReport arenaBattleReport = base.m_arenaBattleReportDS.FindArenaBattleReportByInstanceId(pbArenaBattleReport.InstanceId); if (arenaBattleReport == null) { return(-2007); } arenaBattleReport.BattleType = (BattleType)pbArenaBattleReport.BattleType; arenaBattleReport.BattleId = pbArenaBattleReport.BattleId; arenaBattleReport.RandomSeed = pbArenaBattleReport.RandomSeed; arenaBattleReport.ArenaDefenderRuleId = pbArenaBattleReport.ArenaDefenderRuleId; foreach (ProBattleCommand pbBattleCommand in pbArenaBattleReport.Commands) { arenaBattleReport.Commands.Add(BattleCommand.PBBattleCommandToBattleCommand(pbBattleCommand)); } foreach (ProBattleHero pbBattleHero in pbArenaBattleReport.AttackerHeroes) { arenaBattleReport.AttackerHeroes.Add(BattleHero.PBBattleHeroToBattleHero(pbBattleHero)); } foreach (ProBattleHero pbBattleHero2 in pbArenaBattleReport.DefenderHeroes) { arenaBattleReport.DefenderHeroes.Add(BattleHero.PBBattleHeroToBattleHero(pbBattleHero2)); } foreach (ProTrainingTech tech in pbArenaBattleReport.AttackerTechs) { TrainingTech trainingTech = TrainingTech.FromDataSection(tech); trainingTech.ConfigDataLoader = this.m_configDataLoader; arenaBattleReport.AttackerTechs.Add(trainingTech); } foreach (ProTrainingTech tech2 in pbArenaBattleReport.DefenderTechs) { TrainingTech trainingTech2 = TrainingTech.FromDataSection(tech2); trainingTech2.ConfigDataLoader = this.m_configDataLoader; arenaBattleReport.DefenderTechs.Add(trainingTech2); } return(0); }
public static int get_ConfigDataLoader(IntPtr l) { int result; try { TrainingTech trainingTech = (TrainingTech)LuaObject.checkSelf(l); LuaObject.pushValue(l, true); LuaObject.pushValue(l, trainingTech.ConfigDataLoader); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int constructor(IntPtr l) { int result; try { TrainingTech o = new TrainingTech(); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int UpdateInstantiatedData(IntPtr l) { int result; try { TrainingTech trainingTech = (TrainingTech)LuaObject.checkSelf(l); List <TrainingTech> availableTechs; LuaObject.checkType <List <TrainingTech> >(l, 2, out availableTechs); trainingTech.UpdateInstantiatedData(availableTechs); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int set_ConfigDataLoader(IntPtr l) { int result; try { TrainingTech trainingTech = (TrainingTech)LuaObject.checkSelf(l); IConfigDataLoader configDataLoader; LuaObject.checkType <IConfigDataLoader>(l, 2, out configDataLoader); trainingTech.ConfigDataLoader = configDataLoader; LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int set_Level(IntPtr l) { int result; try { TrainingTech trainingTech = (TrainingTech)LuaObject.checkSelf(l); int level; LuaObject.checkType(l, 2, out level); trainingTech.Level = level; LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int FromDataSection_s(IntPtr l) { int result; try { ProTrainingTech tech; LuaObject.checkType <ProTrainingTech>(l, 1, out tech); TrainingTech o = TrainingTech.FromDataSection(tech); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int GetUnlearntTech(IntPtr l) { int result; try { TrainingGround trainingGround = (TrainingGround)LuaObject.checkSelf(l); int techId; LuaObject.checkType(l, 2, out techId); TrainingTech unlearntTech = trainingGround.GetUnlearntTech(techId); LuaObject.pushValue(l, true); LuaObject.pushValue(l, unlearntTech); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int __callBase_GetTech(IntPtr l) { int result; try { TrainingGroundCompoment trainingGroundCompoment = (TrainingGroundCompoment)LuaObject.checkSelf(l); int techId; LuaObject.checkType(l, 2, out techId); TrainingTech o = trainingGroundCompoment.m_luaExportHelper.__callBase_GetTech(techId); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int ToPro(IntPtr l) { int result; try { int total = LuaDLL.lua_gettop(l); if (LuaObject.matchType(l, total, 2, new Type[0])) { TrainingTech trainingTech = (TrainingTech)LuaObject.checkSelf(l); ProTrainingTech o = trainingTech.ToPro(); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } else if (LuaObject.matchType(l, total, 2, new Type[0])) { TrainingTech trainingTech2 = (TrainingTech)LuaObject.checkSelf(l); ProTrainingTech o2 = trainingTech2.ToPro(); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o2); result = 2; } else { LuaObject.pushValue(l, false); LuaDLL.lua_pushstring(l, "No matched override function ToPro to call"); result = 2; } } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
// Token: 0x0600DE0E RID: 56846 RVA: 0x003C09A0 File Offset: 0x003BEBA0 public void InitTrainingSkillItemInfo(TrainingTech tech) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_InitTrainingSkillItemInfoTrainingTech_hotfix != null) { this.m_InitTrainingSkillItemInfoTrainingTech_hotfix.call(new object[] { this, tech }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; ProjectLPlayerContext projectLPlayerContext = GameManager.Instance.PlayerContext as ProjectLPlayerContext; this.TrainingTech = tech; this.TechMaxLv = projectLPlayerContext.GetTechMaxLevel(tech.ConfigId); bool flag = tech.Config.TechType == TechDisplayType.TechDisplayType_SoldierLevelUp; if (flag) { IConfigDataLoader configDataLoader = GameManager.Instance.ConfigDataLoader as IConfigDataLoader; ConfigDataSoldierInfo configDataSoldierInfo = configDataLoader.GetConfigDataSoldierInfo(tech.Config.SoldierIDRelated[0]); if (configDataSoldierInfo != null) { this.m_soldierNameText.text = configDataSoldierInfo.Name; } float scale = (float)configDataSoldierInfo.UI_ModelScale * 0.012f; Vector2 offset = new Vector2((float)configDataSoldierInfo.UI_ModelOffsetX, (float)configDataSoldierInfo.UI_ModelOffsetY) * 1.5f; HeroDetailUIController.CreateSpineGraphic(ref this.m_soldierInfoGraphic, configDataSoldierInfo.Model, this.m_graphic, -1, offset, scale, configDataSoldierInfo.ReplaceAnims); if (projectLPlayerContext.IsTechLocked(tech.ConfigId)) { this.m_soldierInfoGraphic.SetColor(UIUtility.MyGrayColor); } else { this.m_soldierInfoGraphic.SetColor(Color.white); } } else if (projectLPlayerContext.IsTechLocked(tech.ConfigId)) { this.m_iconImageGrey.sprite = AssetUtility.Instance.GetSprite(this.TrainingTech.Config.Resource); } else { this.m_iconImage.sprite = AssetUtility.Instance.GetSprite(this.TrainingTech.Config.Resource); } if (projectLPlayerContext.IsTechLocked(tech.ConfigId)) { if (!flag) { this.m_stateCtrl.SetToUIState("SkillLock", false, true); } else { this.m_stateCtrl.SetToUIState("SoldierLock", false, true); } this.m_lvMaxText.SetActive(false); } else { if (!flag) { this.m_stateCtrl.SetToUIState("SkillNormal", false, true); } else { this.m_stateCtrl.SetToUIState("SoldierNormal", false, true); } this.m_lvValueText.text = tech.Level + "/" + this.TechMaxLv; this.m_lvValueText.gameObject.SetActive(tech.Level < this.TechMaxLv); this.m_lvMaxText.SetActive(tech.Level == this.TechMaxLv); } int num = projectLPlayerContext.CanTechLevelup(tech.ConfigId); this.m_redMark.SetActive(!projectLPlayerContext.IsTechLocked(tech.ConfigId) && num == 0); }
// Token: 0x060077F2 RID: 30706 RVA: 0x0020B00C File Offset: 0x0020920C public void __callBase_ApplyTrainingTechToHero(Hero hero, TrainingTech tech) { this.m_owner.__callBase_ApplyTrainingTechToHero(hero, tech); }
// Token: 0x060077D7 RID: 30679 RVA: 0x0020ACFC File Offset: 0x00208EFC private void __callBase_ApplyTrainingTechToHero(Hero hero, TrainingTech tech) { base.ApplyTrainingTechToHero(hero, tech); }
// Token: 0x06004994 RID: 18836 RVA: 0x0016FA98 File Offset: 0x0016DC98 public void __clearDele_TrainingTechLevelupMissionEvent(TrainingTech obj) { this.m_owner.__clearDele_TrainingTechLevelupMissionEvent(obj); }