Ejemplo n.º 1
0
        // 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);
        }
Ejemplo n.º 2
0
    public static int PBDefensiveBattleInfoToDefensiveBattleInfo_s(IntPtr l)
    {
        int result;

        try
        {
            ProArenaDefensiveBattleInfo pbDefensiveBattleInfo;
            LuaObject.checkType <ProArenaDefensiveBattleInfo>(l, 1, out pbDefensiveBattleInfo);
            ArenaOpponentDefensiveBattleInfo o = ArenaOpponentDefensiveBattleInfo.PBDefensiveBattleInfoToDefensiveBattleInfo(pbDefensiveBattleInfo);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Ejemplo n.º 3
0
        // 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);
        }
Ejemplo n.º 4
0
        // 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);
        }