// Token: 0x06006C2B RID: 27691 RVA: 0x001E4FB8 File Offset: 0x001E31B8 public void FinsihArenaBattle(bool isWin) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_FinsihArenaBattleBoolean_hotfix != null) { this.m_FinsihArenaBattleBoolean_hotfix.call(new object[] { this, isWin }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; ArenaOpponentDefensiveBattleInfo arenaDefensiveBattleInfo = base.GetArenaDefensiveBattleInfo(); if (arenaDefensiveBattleInfo == null) { Debug.LogError("FinsihArenaBattle, defensivBattleInfo is null"); return; } if (isWin) { base.SetSuccessArenaBattle(arenaDefensiveBattleInfo.ArenaOpponentPointZoneId); BattleReward battleReward = (this.m_battle as BattleComponent).GetBattleReward(); battleReward.PlayerExp = this.m_configDataLoader.ConfigableConstId_ArenaAddPlayerExp; battleReward.HeroExp = this.m_hero.GetAdditiveHeroAddExp(this.m_configDataLoader.ConfigableConstId_ArenaAddHeroExp); } base.OnFinishedArenaBattle(arenaDefensiveBattleInfo, isWin); }
// Token: 0x06006C28 RID: 27688 RVA: 0x001E4D6C File Offset: 0x001E2F6C public void RevengeOpponent(ulong battleReportInstanceId, bool autoBattle, ProArenaDefensiveBattleInfo pbBattleInfo) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_RevengeOpponentUInt64BooleanProArenaDefensiveBattleInfo_hotfix != null) { this.m_RevengeOpponentUInt64BooleanProArenaDefensiveBattleInfo_hotfix.call(new object[] { this, battleReportInstanceId, autoBattle, pbBattleInfo }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; ArenaOpponentDefensiveBattleInfo arenaOpponentDefensiveBattleInfo = ArenaOpponentDefensiveBattleInfo.PBDefensiveBattleInfoToDefensiveBattleInfo(pbBattleInfo); foreach (TrainingTech trainingTech in arenaOpponentDefensiveBattleInfo.BattleTeamSnapshot.Techs) { trainingTech.ConfigDataLoader = this.m_configDataLoader; } ArenaBattleReport battleReportRevenged = base.m_arenaBattleReportDS.FindArenaBattleReportByInstanceId(battleReportInstanceId); base.SetBattleReportRevenged(battleReportRevenged); base.ArenaPlayerInfo.IsAutoBattle = autoBattle; this.OnStartArenaBattle(arenaOpponentDefensiveBattleInfo); }
// Token: 0x06006C29 RID: 27689 RVA: 0x001E4E84 File Offset: 0x001E3084 private void OnStartArenaBattle(ArenaOpponentDefensiveBattleInfo battleInfo) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_OnStartArenaBattleArenaOpponentDefensiveBattleInfo_hotfix != null) { this.m_OnStartArenaBattleArenaOpponentDefensiveBattleInfo_hotfix.call(new object[] { this, battleInfo }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; this.m_arenaDS.SetArenaDefensiveBattleInfo(battleInfo); this.m_basicInfo.AddArenaTickets(-this.m_configDataLoader.ConfigableConstId_ArenaOneTimeAttackUseTicketsNums, false, GameFunctionType.GameFunctionType_None, null); this.m_battle.SetArenaBattleInfo(battleInfo.BattleTeamSnapshot.BattleId); }
public static int get_Status(IntPtr l) { int result; try { ArenaOpponentDefensiveBattleInfo arenaOpponentDefensiveBattleInfo = (ArenaOpponentDefensiveBattleInfo)LuaObject.checkSelf(l); LuaObject.pushValue(l, true); LuaObject.pushEnum(l, (int)arenaOpponentDefensiveBattleInfo.Status); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int get_BattleTeamSnapshot(IntPtr l) { int result; try { ArenaOpponentDefensiveBattleInfo arenaOpponentDefensiveBattleInfo = (ArenaOpponentDefensiveBattleInfo)LuaObject.checkSelf(l); LuaObject.pushValue(l, true); LuaObject.pushValue(l, arenaOpponentDefensiveBattleInfo.BattleTeamSnapshot); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int constructor(IntPtr l) { int result; try { ArenaOpponentDefensiveBattleInfo o = new ArenaOpponentDefensiveBattleInfo(); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int GetArenaDefensiveBattleInfo(IntPtr l) { int result; try { DataSectionArena dataSectionArena = (DataSectionArena)LuaObject.checkSelf(l); ArenaOpponentDefensiveBattleInfo arenaDefensiveBattleInfo = dataSectionArena.GetArenaDefensiveBattleInfo(); LuaObject.pushValue(l, true); LuaObject.pushValue(l, arenaDefensiveBattleInfo); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int DefensiveBattleInfoToPBDefensiveBattleInfo_s(IntPtr l) { int result; try { ArenaOpponentDefensiveBattleInfo defensiveBattleInfo; LuaObject.checkType <ArenaOpponentDefensiveBattleInfo>(l, 1, out defensiveBattleInfo); ProArenaDefensiveBattleInfo o = ArenaOpponentDefensiveBattleInfo.DefensiveBattleInfoToPBDefensiveBattleInfo(defensiveBattleInfo); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int set_ArenaOpponentPointZoneId(IntPtr l) { int result; try { ArenaOpponentDefensiveBattleInfo arenaOpponentDefensiveBattleInfo = (ArenaOpponentDefensiveBattleInfo)LuaObject.checkSelf(l); int arenaOpponentPointZoneId; LuaObject.checkType(l, 2, out arenaOpponentPointZoneId); arenaOpponentDefensiveBattleInfo.ArenaOpponentPointZoneId = arenaOpponentPointZoneId; LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int set_BattleExpiredTime(IntPtr l) { int result; try { ArenaOpponentDefensiveBattleInfo arenaOpponentDefensiveBattleInfo = (ArenaOpponentDefensiveBattleInfo)LuaObject.checkSelf(l); long battleExpiredTime; LuaObject.checkType(l, 2, out battleExpiredTime); arenaOpponentDefensiveBattleInfo.BattleExpiredTime = battleExpiredTime; LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int set_Status(IntPtr l) { int result; try { ArenaOpponentDefensiveBattleInfo arenaOpponentDefensiveBattleInfo = (ArenaOpponentDefensiveBattleInfo)LuaObject.checkSelf(l); ArenaBattleReportStatus status; LuaObject.checkEnum <ArenaBattleReportStatus>(l, 2, out status); arenaOpponentDefensiveBattleInfo.Status = status; LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int set_BattleTeamSnapshot(IntPtr l) { int result; try { ArenaOpponentDefensiveBattleInfo arenaOpponentDefensiveBattleInfo = (ArenaOpponentDefensiveBattleInfo)LuaObject.checkSelf(l); ArenaPlayerDefensiveTeamSnapshot battleTeamSnapshot; LuaObject.checkType <ArenaPlayerDefensiveTeamSnapshot>(l, 2, out battleTeamSnapshot); arenaOpponentDefensiveBattleInfo.BattleTeamSnapshot = battleTeamSnapshot; LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
// Token: 0x06006C27 RID: 27687 RVA: 0x001E4C90 File Offset: 0x001E2E90 public void ReconnectArenaBattle(ProArenaDefensiveBattleInfo pbBattleInfo) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_ReconnectArenaBattleProArenaDefensiveBattleInfo_hotfix != null) { this.m_ReconnectArenaBattleProArenaDefensiveBattleInfo_hotfix.call(new object[] { this, pbBattleInfo }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; ArenaOpponentDefensiveBattleInfo arenaOpponentDefensiveBattleInfo = ArenaOpponentDefensiveBattleInfo.PBDefensiveBattleInfoToDefensiveBattleInfo(pbBattleInfo); foreach (TrainingTech trainingTech in arenaOpponentDefensiveBattleInfo.BattleTeamSnapshot.Techs) { trainingTech.ConfigDataLoader = this.m_configDataLoader; } this.m_arenaDS.SetArenaDefensiveBattleInfo(arenaOpponentDefensiveBattleInfo); }
// Token: 0x06006C26 RID: 27686 RVA: 0x001E4B94 File Offset: 0x001E2D94 public void StartArenaBattle(ProArenaDefensiveBattleInfo pbBattleInfo, bool autoBattle) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_StartArenaBattleProArenaDefensiveBattleInfoBoolean_hotfix != null) { this.m_StartArenaBattleProArenaDefensiveBattleInfoBoolean_hotfix.call(new object[] { this, pbBattleInfo, autoBattle }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; ArenaOpponentDefensiveBattleInfo arenaOpponentDefensiveBattleInfo = ArenaOpponentDefensiveBattleInfo.PBDefensiveBattleInfoToDefensiveBattleInfo(pbBattleInfo); foreach (TrainingTech trainingTech in arenaOpponentDefensiveBattleInfo.BattleTeamSnapshot.Techs) { trainingTech.ConfigDataLoader = this.m_configDataLoader; } arenaOpponentDefensiveBattleInfo.Status = ArenaBattleReportStatus.Attack; this.m_arenaDS.SetAttackedOpponent(autoBattle); this.OnStartArenaBattle(arenaOpponentDefensiveBattleInfo); }
// Token: 0x06006C89 RID: 27785 RVA: 0x001E5BF8 File Offset: 0x001E3DF8 public void OnStartArenaBattle(ArenaOpponentDefensiveBattleInfo battleInfo) { this.m_owner.OnStartArenaBattle(battleInfo); }
// Token: 0x06006C67 RID: 27751 RVA: 0x001E59D8 File Offset: 0x001E3BD8 public void __callBase_OnFinishedArenaBattle(ArenaOpponentDefensiveBattleInfo defensivBattleInfo, bool isWin) { this.m_owner.__callBase_OnFinishedArenaBattle(defensivBattleInfo, isWin); }
// Token: 0x06006C3B RID: 27707 RVA: 0x001E54E8 File Offset: 0x001E36E8 private void __callBase_OnFinishedArenaBattle(ArenaOpponentDefensiveBattleInfo defensivBattleInfo, bool isWin) { base.OnFinishedArenaBattle(defensivBattleInfo, isWin); }