コード例 #1
0
        // Token: 0x06014741 RID: 83777 RVA: 0x005325AC File Offset: 0x005307AC
        private void FlushClimbTower()
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_FlushClimbTower_hotfix != null)
            {
                this.m_FlushClimbTower_hotfix.call(new object[]
                {
                    this
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix      = false;
            this.m_nextCheckClimbTowerFlushTime = DateTime.MaxValue;
            ClimbTowerGetNetTask climbTowerGetNetTask = new ClimbTowerGetNetTask();

            climbTowerGetNetTask.EventOnStop += delegate(Task task)
            {
                ClimbTowerGetNetTask climbTowerGetNetTask2 = task as ClimbTowerGetNetTask;
                if (climbTowerGetNetTask2.Result == 0)
                {
                    base.StartUpdatePipeLine(null, false, false, true);
                }
                else
                {
                    CommonUIController.Instance.ShowErrorMessage(climbTowerGetNetTask2.Result, 2f, null, true);
                }
                this.m_nextCheckClimbTowerFlushTime = DateTime.Now.AddSeconds(5.0);
            };
            climbTowerGetNetTask.Start(null);
        }
コード例 #2
0
        // Token: 0x0600C8D2 RID: 51410 RVA: 0x00379244 File Offset: 0x00377444
        private void ClimbTowerLevelInfoUIController_OnStartBattle()
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_ClimbTowerLevelInfoUIController_OnStartBattle_hotfix != null)
            {
                this.m_ClimbTowerLevelInfoUIController_OnStartBattle_hotfix.call(new object[]
                {
                    this
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            if (this.m_towerFloorInfo == null || this.m_towerLevelInfo == null)
            {
                return;
            }
            ProjectLPlayerContext projectLPlayerContext = GameManager.Instance.PlayerContext as ProjectLPlayerContext;
            int num = projectLPlayerContext.CanAttackClimbTowerFloor(this.m_towerFloorInfo.ID);

            if (num == 0)
            {
                WorldUITask.StartBattleHappening(BattleType.ClimbTower, this.m_towerFloorInfo.ID);
            }
            else if (num == -5403)
            {
                CommonUIController.Instance.ShowMessage(StringTableId.StringTableId_ClimbTower_Flush, 2f, null, true);
                ClimbTowerGetNetTask climbTowerGetNetTask = new ClimbTowerGetNetTask();
                climbTowerGetNetTask.EventOnStop += delegate(Task task)
                {
                    ClimbTowerGetNetTask climbTowerGetNetTask2 = task as ClimbTowerGetNetTask;
                    if (climbTowerGetNetTask2.Result == 0)
                    {
                        this.ClimbTowerLevelInfoUIController_OnClose();
                    }
                    else
                    {
                        CommonUIController.Instance.ShowErrorMessage(climbTowerGetNetTask2.Result, 2f, null, true);
                    }
                };
                climbTowerGetNetTask.Start(null);
            }
            else
            {
                WorldUITask.HandleAttackFailResult(num, this.m_currIntent);
            }
        }