Ejemplo n.º 1
0
        // Token: 0x060120CE RID: 73934 RVA: 0x004A7DAC File Offset: 0x004A5FAC
        private void MissionUIController_OnGetReward(int missionId, Action OnSucceed)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_MissionUIController_OnGetRewardInt32Action_hotfix != null)
            {
                this.m_MissionUIController_OnGetRewardInt32Action_hotfix.call(new object[]
                {
                    this,
                    missionId,
                    OnSucceed2
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            Action                OnSucceed             = OnSucceed2;
            MissionUITask         $this                 = this;
            ProjectLPlayerContext projectLPlayerContext = GameManager.Instance.PlayerContext as ProjectLPlayerContext;
            int num = projectLPlayerContext.CanGainMissionReward(missionId);

            if (num == 0)
            {
                MissionRewardGetNetTask missionRewardGetNetTask = new MissionRewardGetNetTask(missionId);
                missionRewardGetNetTask.EventOnStop += delegate(Task task)
                {
                    $this.UpdateView();
                    MissionRewardGetNetTask missionRewardGetNetTask2 = task as MissionRewardGetNetTask;
                    if (missionRewardGetNetTask2.Result == 0)
                    {
                        OnSucceed();
                    }
                    else if (missionRewardGetNetTask2.Result == -500)
                    {
                        BagFullUITask.StartUITask($this.m_currIntent);
                    }
                    else
                    {
                        CommonUIController.Instance.ShowErrorMessage(missionRewardGetNetTask2.Result, 2f, null, true);
                    }
                };
                missionRewardGetNetTask.Start(null);
            }
            else if (num == -500)
            {
                BagFullUITask.StartUITask(this.m_currIntent);
            }
            else
            {
                this.UpdateView();
                CommonUIController.Instance.ShowErrorMessage(num, 2f, null, true);
            }
        }
Ejemplo n.º 2
0
        // Token: 0x060120CF RID: 73935 RVA: 0x004A7EB8 File Offset: 0x004A60B8
        private void MissionUIController_OnShowGotoLayer(GetPathData getPathInfo)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_MissionUIController_OnShowGotoLayerGetPathData_hotfix != null)
            {
                this.m_MissionUIController_OnShowGotoLayerGetPathData_hotfix.call(new object[]
                {
                    this,
                    getPathInfo2
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            GetPathData   getPathInfo = getPathInfo2;
            MissionUITask $this       = this;
            int?          num         = new int?(0);
            FadeStyle     style       = FadeStyle.Black;
            int           num2        = WorldUITask.CanGotoGetPath(getPathInfo, ref style);

            if (num2 <= 0)
            {
                num = new int?(num2);
                if (num == 0)
                {
                    CommonUIController.Instance.StartFadeOut(delegate
                    {
                        $this.Pause();
                        WorldUITask.StartGetPathTargetUITask(getPathInfo, $this.m_currIntent, null);
                    }, style, -1f);
                }
                else
                {
                    CommonUIController.Instance.ShowErrorMessage(num.Value, 2f, null, true);
                }
                return;
            }
        }
Ejemplo n.º 3
0
 // Token: 0x060120EE RID: 73966 RVA: 0x004A840C File Offset: 0x004A660C
 public LuaExportHelper(MissionUITask owner)
 {
     this.m_owner = owner;
 }