コード例 #1
0
        // Token: 0x0600EFCF RID: 61391 RVA: 0x003FE86C File Offset: 0x003FCA6C
        private void GetRandomGuildList(Action <int> OnReqFinish)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_GetRandomGuildListAction ` 1_hotfix != null)
            {
                this.m_GetRandomGuildListAction ` 1_hotfix.call(new object[]
                {
                    this,
                    OnReqFinish2
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            Action <int> OnReqFinish = OnReqFinish2;
            BeforeJoinGuildListUIController $this = this;
            int result = this.m_playerContext.CheckGuildRandomList();

            if (result != 0)
            {
                CommonUIController.Instance.ShowErrorMessage(result, 2f, null, true);
                return;
            }
            GuildRandomListReqNetTask guildRandomListReqNetTask = new GuildRandomListReqNetTask();

            guildRandomListReqNetTask.EventOnStop += delegate(Task task)
            {
                GuildRandomListReqNetTask guildRandomListReqNetTask2 = task as GuildRandomListReqNetTask;
                if (guildRandomListReqNetTask2.Result == 0)
                {
                    $this.m_guildRecommendInfoList = guildRandomListReqNetTask2.m_guildSearchInfoList;
                    $this.RefreshGuildList($this.m_guildRecommendInfoList);
                }
                else
                {
                    CommonUIController.Instance.ShowErrorMessage(guildRandomListReqNetTask2.Result, 2f, null, true);
                }
                if (OnReqFinish != null)
                {
                    OnReqFinish(result);
                }
            };
            guildRandomListReqNetTask.Start(null);
        }
コード例 #2
0
 // Token: 0x0600EFED RID: 61421 RVA: 0x003FF284 File Offset: 0x003FD484
 public LuaExportHelper(BeforeJoinGuildListUIController owner)
 {
     this.m_owner = owner;
 }