private void OnQuery_JOIN()
 {
     GameSection.StayEvent();
     MonoBehaviourSingleton <GuildManager> .I.SendRequestJoin(_clanId, -1, delegate(bool isSuccess, Error error)
     {
         InGameGuildInvitedJoinDialog inGameGuildInvitedJoinDialog = this;
         DoWaitProtocolBusyFinish(delegate
         {
             if (!GuildManager.IsValidInGuild())
             {
                 GameSection.ChangeStayEvent("REQUEST", null);
             }
             GameSection.ResumeEvent(isSuccess, null);
             if (GuildManager.IsValidInGuild())
             {
                 MonoBehaviourSingleton <GuildManager> .I.guildInviteList.Clear();
                 MonoBehaviourSingleton <UserInfoManager> .I.ClearPartyInvite();
                 MonoBehaviourSingleton <UIManager> .I.invitationButton.Close(UITransition.TYPE.CLOSE);
                 MonoBehaviourSingleton <UIManager> .I.invitationInGameButton.Close(UITransition.TYPE.CLOSE);
                 MonoBehaviourSingleton <UserInfoManager> .I.showJoinClanInGame = true;
                 inGameGuildInvitedJoinDialog.BackToHome();
             }
         });
     });
 }
    protected override void OnQuery_FOLLOW()
    {
        GameSection.SetEventData(new object[1]
        {
            record.charaInfo.name
        });
        List <int> list = new List <int>();

        list.Add(record.charaInfo.userId);
        if (isQuestResult)
        {
            SendFollow(list, delegate
            {
                if (MonoBehaviourSingleton <CoopApp> .IsValid())
                {
                    CoopApp.UpdateField(null);
                }
            });
        }
        else
        {
            GameSection.StayEvent();
            MonoBehaviourSingleton <PartyManager> .I.SendFollowAgency(list, delegate(bool is_success)
            {
                if (isQuestResult && is_success)
                {
                    MonoBehaviourSingleton <FriendManager> .I.SetFollowToHomeCharaInfo(record.charaInfo.userId, true);
                }
                GameSection.ResumeEvent(is_success, null);
            });
        }
    }
    protected void WaveMatchAuto()
    {
        GameSection.SetEventData(new object[1]
        {
            false
        });
        GameSection.StayEvent();
        int retryCount = 0;

        PartyManager.PartySetting setting = new PartyManager.PartySetting(false, 0, 0, 0, 0);
        MonoBehaviourSingleton <PartyManager> .I.SendRandomMatching((int)info.GetQuestData().questID, retryCount, false, delegate(bool is_success, int maxRetryCount, bool isJoined, float waitTime)
        {
            //IL_0042: Unknown result type (might be due to invalid IL or missing references)
            if (!is_success)
            {
                GameSection.ResumeEvent(false, null);
            }
            else if (maxRetryCount > 0)
            {
                retryCount++;
                this.StartCoroutine(MatchAtRandom(setting, retryCount, waitTime));
            }
            else if (!isJoined)
            {
                WaveMatchCreate();
            }
            else
            {
                MonoBehaviourSingleton <PartyManager> .I.SetPartySetting(setting);
                GameSection.ResumeEvent(true, null);
            }
        });
    }
    private void OnQuery_NEXT()
    {
        GameSection.StayEvent();
        MonoBehaviourSingleton <ChatManager> .I.SwitchRoomChatConnectionToCoopConnection();

        Action <bool> action = delegate
        {
            if (MonoBehaviourSingleton <InGameManager> .IsValid() && MonoBehaviourSingleton <InGameManager> .I.IsQuestInField())
            {
                MonoBehaviourSingleton <InGameManager> .I.isTransitionQuestToField = true;
                GameSection.ChangeStayEvent("QUEST_TO_FIELD", null);
            }
            GameSection.ResumeEvent(true, null);
        };

        if (MonoBehaviourSingleton <InGameManager> .IsValid() && MonoBehaviourSingleton <InGameManager> .I.isQuestResultFieldLeave)
        {
            bool toHome = !MonoBehaviourSingleton <InGameManager> .I.IsQuestInField() && !MonoBehaviourSingleton <InGameManager> .I.IsQuestInPortal();

            MonoBehaviourSingleton <CoopApp> .I.LeaveWithParty(action, toHome, false);
        }
        else
        {
            action(true);
        }
        if (MonoBehaviourSingleton <UIManager> .IsValid() && MonoBehaviourSingleton <UIManager> .I.mainChat != null)
        {
            MonoBehaviourSingleton <UIManager> .I.mainChat.HideOpenButton();

            MonoBehaviourSingleton <UIManager> .I.mainChat.HideAll();
        }
    }
    public override void OnQuery_FOLLOW_INFO()
    {
        //IL_00af: Unknown result type (might be due to invalid IL or missing references)
        //IL_00b4: Expected O, but got Unknown
        int index = (int)GameSection.GetEventData();

        FriendMessageUserListModel.MessageUserInfo messageUserInfo = recvdata[index];
        if (messageUserInfo == null)
        {
            GameSection.StopEvent();
        }
        else if (!messageUserInfo.isPermitted)
        {
            GameSection.ChangeEvent("NOT_PERMITTED", null);
        }
        else
        {
            GameSection.ChangeEvent("TO_MESSAGE", null);
            GameSection.StayEvent();
            MonoBehaviourSingleton <FriendManager> .I.SendGetMessageDetailList(messageUserInfo.userId, 0, delegate(bool is_success)
            {
                GameSection.ResumeEvent(is_success, null);
            });

            MonoBehaviourSingleton <FriendManager> .I.SetNoReadMessageNum(MonoBehaviourSingleton <FriendManager> .I.noReadMessageNum - messageUserInfo.noReadNum);

            messageUserInfo.noReadNum = 0;
            Transform t = GetCtrl(UI.GRD_LIST).FindChild(index.ToString());
            SetBadge(t, messageUserInfo.noReadNum, 3, -10, -6, false);
        }
    }
Ejemplo n.º 6
0
    private void OnQuery_SEND()
    {
        //IL_002c: Unknown result type (might be due to invalid IL or missing references)
        //IL_0031: Expected O, but got Unknown
        int       index      = (int)GameSection.GetEventData();
        Transform t          = GetCtrl(UI.TBL_LIST).FindChild(index.ToString());
        string    inputValue = GetInputValue(t, UI.IPT_CODE);

        if (string.IsNullOrEmpty(inputValue))
        {
            GameSection.StopEvent();
        }
        else
        {
            GameSection.StayEvent();
            SendInputSerialCode(serialList.serials[index].serialId, inputValue, delegate(bool is_success, string msg)
            {
                if (is_success)
                {
                    GameSection.SetEventData(msg);
                    SetInputValue(t, UI.IPT_CODE, string.Empty);
                }
                GameSection.ResumeEvent(is_success, null);
            });
        }
    }
 protected void OnQuery_ItemDetailEquipSetExtConfirm_YES()
 {
     if (equipSetExtEventData == null)
     {
         Log.Error(LOG.OUTGAME, "EQUIP_SET_EXT data is NULL");
         GameSection.StopEvent();
     }
     else
     {
         GameSection.SetEventData(equipSetExtEventData);
         GameSection.StayEvent();
         MonoBehaviourSingleton <InventoryManager> .I.SendInventoryEquipSetExt(data.GetUniqID().ToString(), delegate(bool is_success)
         {
             if (is_success)
             {
                 if (MonoBehaviourSingleton <StatusManager> .IsValid())
                 {
                     MonoBehaviourSingleton <StatusManager> .I.ResetEquipSetInfo();
                 }
                 MonoBehaviourSingleton <GameSceneManager> .I.SetNotify(NOTIFY_FLAG.UPDATE_EQUIP_SET_INFO);
             }
             GameSection.ResumeEvent(is_success, null);
         });
     }
 }
 protected void SendApply(int questId = 0)
 {
     GameSection.SetEventData(new object[1]
     {
         true
     });
     GameSection.StayEvent();
     MonoBehaviourSingleton <PartyManager> .I.SendApply(string.Join(string.Empty, passCode), delegate(bool is_apply, Error ret_code)
     {
         if (is_apply && !MonoBehaviourSingleton <GameSceneManager> .I.CheckQuestAndOpenUpdateAppDialog(MonoBehaviourSingleton <PartyManager> .I.GetQuestId(), true))
         {
             Protocol.Force(delegate
             {
                 MonoBehaviourSingleton <PartyManager> .I.SendLeave(delegate
                 {
                 });
             });
         }
         else if (ret_code == Error.WRN_PARTY_SEARCH_NOT_FOUND_PARTY || ret_code == Error.WRN_PARTY_OWNER_REJOIN)
         {
             GameSection.ChangeStayEvent("NOT_FOUND_PARTY", null);
             GameSection.ResumeEvent(true, null);
         }
         else
         {
             GameSection.ResumeEvent(is_apply, null);
         }
     }, questId);
 }
    private void OnQuery_FOLLOW()
    {
        int index = (int)GameSection.GetEventData();

        GameSection.SetEventData(new object[1]
        {
            infoList[index].name
        });
        List <int> list = new List <int>();

        list.Add(infoList[index].userId);
        GameSection.StayEvent();
        MonoBehaviourSingleton <FriendManager> .I.SendFollowUser(list, delegate(Error err, List <int> follow_list)
        {
            bool flag = err == Error.None && follow_list.Count > 0;
            if (flag)
            {
                infoList[index].following = !infoList[index].following;
            }
            if (MonoBehaviourSingleton <CoopApp> .IsValid())
            {
                CoopApp.UpdateField(null);
            }
            GameSection.ResumeEvent(flag, null);
            RefreshUI();
        });
    }
Ejemplo n.º 10
0
    private void OnQuery_OK()
    {
        GameSection.SetEventData(null);
        string input_text = GetInputValue((Enum)UI.IPT_TEXT);

        GameSection.StayEvent();
        MonoBehaviourSingleton <FriendManager> .I.SendSearchID(input_text, delegate(bool is_success, FriendSearchResult recv_data)
        {
            if (is_success)
            {
                GameSection.ChangeStayEvent("OK", new object[4]
                {
                    true,
                    0,
                    recv_data,
                    input_text
                });
            }
            else
            {
                GameSection.ChangeStayEvent("OK", new object[4]
                {
                    true,
                    0,
                    new FriendSearchResult(),
                    input_text
                });
            }
            GameSection.ResumeEvent(true, null);
        });
    }
    protected void SendUseItem()
    {
        GameSection.StayEvent();
        ItemInfo itemInfo = data.GetItemData() as ItemInfo;

        if (itemInfo != null && itemInfo.tableData != null)
        {
            if (itemInfo.tableData.id == 7500101 || itemInfo.tableData.id == 7500102)
            {
                MonoBehaviourSingleton <InventoryManager> .I.SendInventoryAutoItem(data.GetUniqID().ToString(), delegate(bool is_success)
                {
                    GameSection.ResumeEvent(is_success, null);
                });
            }
            else
            {
                MonoBehaviourSingleton <InventoryManager> .I.SendInventoryUseItem(data.GetUniqID().ToString(), delegate(bool is_success)
                {
                    if (is_success && FieldManager.IsValidInGame() && MonoBehaviourSingleton <CoopNetworkManager> .IsValid())
                    {
                        MonoBehaviourSingleton <CoopNetworkManager> .I.UpdateBoost();
                    }
                    GameSection.ResumeEvent(is_success, null);
                });
            }
        }
    }
Ejemplo n.º 12
0
    private void OnQuery_COMPLETE_GRID()
    {
        GridData gridData = GameSection.GetEventData() as GridData;

        GameSection.StayEvent();
        Delivery deliveryInfo = gridData.deliveryInfo;
        CardData cardData     = GetCurrentCard();

        MonoBehaviourSingleton <DeliveryManager> .I.isStoryEventEnd = false;
        MonoBehaviourSingleton <DeliveryManager> .I.SendDeliveryComplete(deliveryInfo.uId, false, delegate(bool is_success, DeliveryRewardList recv_reward)
        {
            //IL_0028: Unknown result type (might be due to invalid IL or missing references)
            if (is_success)
            {
                this.StartCoroutine(WaitAndDo(delegate
                {
                    PlayGridCompleteAnimation(gridData, true, delegate
                    {
                        GameSection.ChangeStayEvent("GET_REWARD", new object[2]
                        {
                            gridData.deliveryData,
                            cardData.eventData
                        });
                        GameSection.ResumeEvent(true, null);
                        RefreshMissionData(currentCardIndex);
                        RefreshUI();
                    });
                }, 0.2f));
            }
            else
            {
                GameSection.ResumeEvent(false, null);
            }
        });
    }
Ejemplo n.º 13
0
 private void OnQuery_LOUNGE()
 {
     GameSection.StayEvent();
     MonoBehaviourSingleton <LoungeMatchingManager> .I.SendApply(string.Join(string.Empty, passCode), delegate(bool is_apply, Error ret_code)
     {
         if (is_apply && !MonoBehaviourSingleton <GameSceneManager> .I.CheckQuestAndOpenUpdateAppDialog(MonoBehaviourSingleton <PartyManager> .I.GetQuestId(), true))
         {
             Protocol.Force(delegate
             {
                 MonoBehaviourSingleton <PartyManager> .I.SendLeave(delegate
                 {
                 });
             });
         }
         else if (ret_code == Error.WRN_PARTY_SEARCH_NOT_FOUND_PARTY || ret_code == Error.WRN_PARTY_OWNER_REJOIN)
         {
             GameSection.ChangeStayEvent("NOT_FOUND_PARTY", null);
             GameSection.ResumeEvent(true, null);
         }
         else
         {
             GameSection.ResumeEvent(is_apply, null);
         }
     });
 }
Ejemplo n.º 14
0
    private void OnQuery_START()
    {
        isRegisted = MonoBehaviourSingleton <AccountManager> .I.account.IsRegist();

        if (!isRegisted)
        {
            GameSection.StayEvent();
            MonoBehaviourSingleton <AccountManager> .I.SendRegistCreate(delegate(bool is_success)
            {
                if (is_success)
                {
                    StartOpening();
                    Dictionary <string, object> values = new Dictionary <string, object>
                    {
                        {
                            "login_type",
                            1
                        }
                    };
                    MonoBehaviourSingleton <GoWrapManager> .I.trackTutorialStep(TRACK_TUTORIAL_STEP_BIT.tutorial_login, "Tutorial", values);
                }
                isRegisted = is_success;
                GameSection.ResumeEvent(is_success, null);
            });
        }
        else
        {
            StartOpening();
        }
        MonoBehaviourSingleton <GoWrapManager> .I.trackTutorialStep(TRACK_TUTORIAL_STEP_BIT.tutorial_start_game, "Tutorial");
    }
 protected virtual void OnQuery_QuestResultFriendUnFollow_YES()
 {
     GameSection.SetEventData(new object[1]
     {
         record.charaInfo.name
     });
     if (isQuestResult)
     {
         SendUnFollow(record.charaInfo.userId, delegate
         {
         });
     }
     else
     {
         GameSection.StayEvent();
         MonoBehaviourSingleton <PartyManager> .I.SendUnFollowAgency(record.charaInfo.userId, delegate(bool is_success)
         {
             if (isQuestResult && is_success)
             {
                 MonoBehaviourSingleton <FriendManager> .I.SetFollowToHomeCharaInfo(record.charaInfo.userId, false);
             }
             GameSection.ResumeEvent(is_success, null);
         });
     }
 }
    protected virtual void OnQuery_SPECIES_SEARCH_REQUEST()
    {
        int num = (int)GameSection.GetEventData();
        SearchRequestParam searchRequestParam = new SearchRequestParam();

        searchRequestParam.enemySpeciesIndex      = 0;
        searchRequestParam.targetEnemySpeciesName = null;
        if (Singleton <GachaSearchEnemyTable> .IsValid())
        {
            GachaSearchEnemyTable.GachaSearchEnemyData[] sortedGachaSearchEnemyData = Singleton <GachaSearchEnemyTable> .I.GetSortedGachaSearchEnemyData();

            for (int i = 0; i < sortedGachaSearchEnemyData.Length; i++)
            {
                if (num == sortedGachaSearchEnemyData[i].id)
                {
                    searchRequestParam.targetEnemySpeciesName = sortedGachaSearchEnemyData[i].name;
                    break;
                }
            }
        }
        searchRequestParam.order = 1;
        MonoBehaviourSingleton <PartyManager> .I.SetSearchRequestTemp(searchRequestParam);

        GameSection.StayEvent();
        MonoBehaviourSingleton <PartyManager> .I.SendSearch(delegate(bool is_success, Error err)
        {
            if (!is_success && err == Error.WRN_PARTY_SEARCH_NOT_FOUND_QUEST)
            {
                OnNotFoundQuest();
            }
            GameSection.ResumeEvent(true, null);
        }, false);
    }
Ejemplo n.º 17
0
    private void OnQuery_PUSH_START()
    {
        //IL_00ba: Unknown result type (might be due to invalid IL or missing references)
        //IL_00d9: Unknown result type (might be due to invalid IL or missing references)
        //IL_00e9: Unknown result type (might be due to invalid IL or missing references)
        //IL_0108: Unknown result type (might be due to invalid IL or missing references)
        if (!(null != tapEffect))
        {
            GameSection.StayEvent();
            MonoBehaviourSingleton <LoungeMatchingManager> .I.SendInfo(delegate(bool is_success)
            {
                GameSection.ResumeEvent(is_success, null);
            }, false);

            tapEffect = ResourceUtility.Realizes(tapPrefab, -1);
            if (null != tapEffect)
            {
                rymFX component = tapEffect.GetComponent <rymFX>();
                if (null != component && null != director)
                {
                    component.Cameras = (Camera[])new Camera[1]
                    {
                        director.logoCamera
                    };
                }
                tapEffect.set_localPosition(new Vector3(0f, 1000f, 0.1f));
                tapEffect.set_localScale(new Vector3(11f, 11f, 1f));
                tapEffect.get_gameObject().SetActive(true);
            }
            SetActive((Enum)UI.BTN_CLEARCACHE, false);
            this.StartCoroutine(DelayStart());
        }
    }
Ejemplo n.º 18
0
 private void OnQuery_START()
 {
     if (!MonoBehaviourSingleton <AccountManager> .I.account.IsRegist())
     {
         GameSection.StayEvent();
         MonoBehaviourSingleton <AccountManager> .I.SendRegistCreate(delegate(bool is_success)
         {
             if (MonoBehaviourSingleton <UserInfoManager> .I.userInfo.name == "/colopl_rob")
             {
                 GameSection.ChangeStayEvent("OPENING", null);
             }
             GameSection.ResumeEvent(is_success, null);
         });
     }
     else if (MonoBehaviourSingleton <UserInfoManager> .I.userStatus.tutorialStep > 0 && MonoBehaviourSingleton <UserInfoManager> .I.userStatus.tutorialStep <= 2)
     {
         if (MonoBehaviourSingleton <UserInfoManager> .I.userStatus.tutorialStep == 1)
         {
             MonoBehaviourSingleton <GameSceneManager> .I.ChangeScene("Title", "CharaMake", UITransition.TYPE.CLOSE, UITransition.TYPE.OPEN, false);
         }
         else if (MonoBehaviourSingleton <UserInfoManager> .I.userStatus.tutorialStep == 2)
         {
             DispatchEvent("MAIN_MENU_HOME", null);
         }
         else
         {
             DispatchEvent("TUTORIAL_" + MonoBehaviourSingleton <UserInfoManager> .I.userStatus.tutorialStep.ToString(), null);
         }
     }
 }
Ejemplo n.º 19
0
    public void OnQuery_INVITED_ROOM()
    {
        string inviteValue = MonoBehaviourSingleton <PartyManager> .I.InviteValue;

        if (!string.IsNullOrEmpty(inviteValue))
        {
            string[] array = inviteValue.Split('_');
            GameSection.SetEventData(new object[1]
            {
                false
            });
            GameSection.StayEvent();
            MonoBehaviourSingleton <PartyManager> .I.SendApply(array[0], delegate(bool is_success, Error ret_code)
            {
                if (is_success && !MonoBehaviourSingleton <GameSceneManager> .I.CheckQuestAndOpenUpdateAppDialog(MonoBehaviourSingleton <PartyManager> .I.GetQuestId(), true))
                {
                    Protocol.Force(delegate
                    {
                        MonoBehaviourSingleton <PartyManager> .I.SendLeave(delegate
                        {
                        });
                    });
                }
                else
                {
                    GameSection.ResumeEvent(is_success, null);
                }
            }, 0);
        }
    }
    private void OnQuery_MATCHING()
    {
        GameSection.SetEventData(new object[1]
        {
            false
        });
        GameSection.StayEvent();
        int retryCount = 0;

        PartyManager.PartySetting setting = new PartyManager.PartySetting(false, 0, 0, 0, 1);
        MonoBehaviourSingleton <PartyManager> .I.SendRandomMatching((int)info.needs[0].questId, retryCount, true, delegate(bool is_success, int maxRetryCount, bool isJoined, float waitTime)
        {
            //IL_0042: Unknown result type (might be due to invalid IL or missing references)
            if (!is_success)
            {
                GameSection.ResumeEvent(false, null);
            }
            else if (maxRetryCount > 0)
            {
                retryCount++;
                this.StartCoroutine(MatchAtRandom(setting, retryCount, waitTime));
            }
            else if (!isJoined)
            {
                OnQuery_AUTO_CREATE_ROOM();
            }
            else
            {
                MonoBehaviourSingleton <PartyManager> .I.SetPartySetting(setting);
                GameSection.ResumeEvent(true, null);
            }
        });
    }
    protected override void Send()
    {
        SmithManager.ResultData result_data = new SmithManager.ResultData();
        GameSection.SetEventData(result_data);
        GameSection.StayEvent();
        MonoBehaviourSingleton <SmithManager> .I.SendCreateEquipItem(GetCreateEquiptableID(), delegate(Error err, EquipItemInfo create_item)
        {
            switch (err)
            {
            case Error.None:
                result_data.itemData = create_item;
                MonoBehaviourSingleton <UIAnnounceBand> .I.isWait = true;
                GameSection.ResumeEvent(true, null);
                break;

            case Error.WRN_SMITH_OVER_EQUIP_ITEM_NUM:
                GameSection.ChangeStayEvent("CREATE_OVER_EQUIP", null);
                GameSection.ResumeEvent(true, null);
                break;

            default:
                GameSection.ResumeEvent(false, null);
                break;
            }
        });
    }
Ejemplo n.º 22
0
    public void OnQuery_JOIN_ROOM()
    {
        string text = (string)GameSection.GetEventData();

        if (string.IsNullOrEmpty(text))
        {
            GameSection.StopEvent();
        }
        GameSection.SetEventData(new object[1]
        {
            false
        });
        GameSection.StayEvent();
        MonoBehaviourSingleton <PartyManager> .I.SendEntry(text, true, delegate(bool is_success)
        {
            if (is_success && !MonoBehaviourSingleton <GameSceneManager> .I.CheckQuestAndOpenUpdateAppDialog(MonoBehaviourSingleton <PartyManager> .I.GetQuestId(), true))
            {
                Protocol.Force(delegate
                {
                    MonoBehaviourSingleton <PartyManager> .I.SendLeave(delegate
                    {
                    });
                });
            }
            else
            {
                GameSection.ResumeEvent(is_success, null);
            }
        });
    }
Ejemplo n.º 23
0
    protected virtual void OnQuery_SELECT_LOUNGE()
    {
        int num = (int)GameSection.GetEventData();

        if (LoungeMatchingManager.IsValidInLounge())
        {
            GameSection.StopEvent();
            if (!(lounges[num].id == MonoBehaviourSingleton <LoungeMatchingManager> .I.loungeData.id))
            {
                EventData[] autoEvents = new EventData[5]
                {
                    new EventData("LOUNGE", null),
                    new EventData("LOUNGE_SETTINGS", null),
                    new EventData("EXIT", null),
                    new EventData("LOUNGE", null),
                    new EventData("FRIEND_INVITED_LOUNGE", lounges[num].id)
                };
                MonoBehaviourSingleton <GameSceneManager> .I.SetAutoEvents(autoEvents);
            }
        }
        else
        {
            GameSection.StayEvent();
            MonoBehaviourSingleton <LoungeMatchingManager> .I.SendEntry(lounges[num].id, delegate(bool isSuccess)
            {
                GameSection.ResumeEvent(isSuccess, null);
            });
        }
    }
 private void SendSell()
 {
     if (tab == ItemStorageTop.TAB_MODE.EQUIP)
     {
         GameSection.StayEvent();
         MonoBehaviourSingleton <ItemExchangeManager> .I.SendInventorySellEquipItem(uniqs, delegate(bool is_success)
         {
             GameSection.ResumeEvent(is_success, null);
         });
     }
     else if (tab == ItemStorageTop.TAB_MODE.MATERIAL)
     {
         GameSection.StayEvent();
         MonoBehaviourSingleton <ItemExchangeManager> .I.SendInventorySellItem(uniqs, nums, delegate(bool is_success)
         {
             GameSection.ResumeEvent(is_success, null);
         });
     }
     else
     {
         GameSection.StayEvent();
         MonoBehaviourSingleton <ItemExchangeManager> .I.SendInventorySellSkillItem(uniqs, delegate(bool is_success)
         {
             GameSection.ResumeEvent(is_success, null);
         });
     }
 }
 public void OnQuery_YES()
 {
     if (num >= item.GetNum())
     {
         GameSection.ChangeEvent("CLOSE_DETAIL", null);
     }
     if (item is ItemSortData)
     {
         GameSection.StayEvent();
         SendItem(delegate(bool b)
         {
             GameSection.ResumeEvent(b, null);
         });
     }
     else if (item is EquipItemSortData)
     {
         GameSection.StayEvent();
         sellConfirm(delegate(bool b)
         {
             if (!b)
             {
                 Debug.LogWarning((object)"sellConfirm = false");
                 GameSection.ResumeEvent(false, null);
             }
             else
             {
                 GameSection.ChangeStayEvent("NON_STACK_SELL", null);
                 SendEquip(new List <string>
                 {
                     item.GetUniqID().ToString()
                 }, delegate(bool is_success)
                 {
                     GameSection.ResumeEvent(is_success, null);
                 });
             }
         });
     }
     else if (item is SkillItemSortData)
     {
         GameSection.ChangeEvent("NON_STACK_SELL", null);
         List <string> list = new List <string>();
         list.Add(item.GetUniqID().ToString());
         GameSection.StayEvent();
         SendSkill(list, delegate(bool b)
         {
             GameSection.ResumeEvent(b, null);
         });
     }
     else if (item is AbilityItemSortData)
     {
         GameSection.StayEvent();
         List <string> list2 = new List <string>();
         list2.Add(item.GetUniqID().ToString());
         SendAbilityItem(list2, delegate(bool is_success)
         {
             GameSection.ResumeEvent(is_success, null);
         });
     }
 }
Ejemplo n.º 26
0
 protected void OnQuery_CoopServerInvalidConfirm_YES()
 {
     GameSection.StayEvent();
     CoopApp.EnterQuestOffline(delegate(bool is_m, bool is_c, bool is_r, bool is_s)
     {
         GameSection.ResumeEvent(is_s, null);
     });
 }
Ejemplo n.º 27
0
 private void OnQuery_BanReasonConfirm_YES()
 {
     GameSection.StayEvent();
     MonoBehaviourSingleton <GuildManager> .I.SendKick(memberInfoData.userId, delegate(bool is_success, Error err)
     {
         GameSection.ResumeEvent(is_success, null);
     });
 }
Ejemplo n.º 28
0
 private void SendStopper(bool enable)
 {
     GameSection.StayEvent();
     MonoBehaviourSingleton <UserInfoManager> .I.SendStopper(enable, delegate(bool is_success)
     {
         GameSection.ResumeEvent(is_success, null);
     });
 }
Ejemplo n.º 29
0
 private void OnQuery_OK()
 {
     GameSection.StayEvent();
     MonoBehaviourSingleton <PartyManager> .I.SendInvite(selectedUserIdList.ToArray(), delegate(bool is_success, int[] invited_users)
     {
         GameSection.ResumeEvent(is_success, null);
     });
 }
Ejemplo n.º 30
0
 private void OnQuery_MUTUAL_FOLLOW()
 {
     GameSection.StayEvent();
     MonoBehaviourSingleton <FriendManager> .I.SendGetFollowLink(delegate(bool is_success)
     {
         GameSection.ResumeEvent(is_success, null);
     });
 }