Esempio n. 1
0
        // Token: 0x06010E1F RID: 69151 RVA: 0x0045EFC4 File Offset: 0x0045D1C4
        private void HeroJobTransferUIController_OnHeroJobUnlock(int heroId, int jobRelatedId, Action OnSucceed)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_HeroJobTransferUIController_OnHeroJobUnlockInt32Int32Action_hotfix != null)
            {
                this.m_HeroJobTransferUIController_OnHeroJobUnlockInt32Int32Action_hotfix.call(new object[]
                {
                    this,
                    heroId,
                    jobRelatedId,
                    OnSucceed2
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            Action OnSucceed            = OnSucceed2;
            HeroJobTransferUITask $this = this;
            HeroJobUnlockNetTask  heroJobUnlockNetTask = new HeroJobUnlockNetTask(heroId, jobRelatedId);

            heroJobUnlockNetTask.EventOnStop += delegate(Task task)
            {
                HeroJobUnlockNetTask heroJobUnlockNetTask2 = task as HeroJobUnlockNetTask;
                if (heroJobUnlockNetTask2.Result == 0)
                {
                    $this.StartUpdatePipeLine(null, false, false, true);
                    OnSucceed();
                }
                else
                {
                    CommonUIController.Instance.ShowErrorMessage(heroJobUnlockNetTask2.Result, 2f, null, true);
                }
            };
            heroJobUnlockNetTask.Start(null);
        }
Esempio n. 2
0
        // Token: 0x06010E1E RID: 69150 RVA: 0x0045EECC File Offset: 0x0045D0CC
        private void HeroJobTransferUIController_OnJobTransfer(int heroId, int jobConnectionId, Action OnSucceed)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_HeroJobTransferUIController_OnJobTransferInt32Int32Action_hotfix != null)
            {
                this.m_HeroJobTransferUIController_OnJobTransferInt32Int32Action_hotfix.call(new object[]
                {
                    this,
                    heroId,
                    jobConnectionId,
                    OnSucceed2
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            Action OnSucceed            = OnSucceed2;
            HeroJobTransferUITask $this = this;
            ProjectLPlayerContext projectLPlayerContext = GameManager.Instance.PlayerContext as ProjectLPlayerContext;
            int num = projectLPlayerContext.CanHeroJobTransfer(heroId, jobConnectionId);

            if (num != 0)
            {
                CommonUIController.Instance.ShowErrorMessage(num, 2f, null, true);
                return;
            }
            HeroJobTransferNetTask heroJobTransferNetTask = new HeroJobTransferNetTask(heroId, jobConnectionId);

            heroJobTransferNetTask.EventOnStop += delegate(Task task)
            {
                HeroJobTransferNetTask heroJobTransferNetTask2 = task as HeroJobTransferNetTask;
                if (heroJobTransferNetTask2.Result == 0)
                {
                    $this.StartUpdatePipeLine(null, false, false, true);
                    OnSucceed();
                }
                else
                {
                    CommonUIController.Instance.ShowErrorMessage(heroJobTransferNetTask2.Result, 2f, null, true);
                }
            };
            heroJobTransferNetTask.Start(null);
        }
Esempio n. 3
0
 // Token: 0x06010E40 RID: 69184 RVA: 0x0045F63C File Offset: 0x0045D83C
 public LuaExportHelper(HeroJobTransferUITask owner)
 {
     this.m_owner = owner;
 }