コード例 #1
0
 private void SendInfo(int starValue, int replyAction)
 {
     MonoBehaviourSingleton <UserInfoManager> .I.SendAppReviewInfo(starValue, replyAction, delegate(bool is_success)
     {
         GameSection.ResumeEvent(is_success, null);
     });
 }
コード例 #2
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);
        });
    }
コード例 #3
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);
            }
        });
    }
コード例 #4
0
    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();
        });
    }
コード例 #5
0
    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);
                });
            }
        }
    }
コード例 #6
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);
         }
     });
 }
コード例 #7
0
 private void _SendRegistAuthFacebook()
 {
     MonoBehaviourSingleton <AccountManager> .I.SendRegistAuthFacebook(MonoBehaviourSingleton <FBManager> .I.accessToken, delegate(bool success)
     {
         if (success)
         {
             MenuReset.needClearCache  = true;
             MenuReset.needPredownload = true;
             if (!MonoBehaviourSingleton <UserInfoManager> .I.userInfo.IsModiedName)
             {
                 MonoBehaviourSingleton <GoWrapManager> .I.trackTutorialStep(TRACK_TUTORIAL_STEP_BIT.tutorial_start_game, "Tutorial");
                 Dictionary <string, object> values = new Dictionary <string, object>
                 {
                     {
                         "login_type",
                         0
                     }
                 };
                 MonoBehaviourSingleton <GoWrapManager> .I.trackTutorialStep(TRACK_TUTORIAL_STEP_BIT.tutorial_login, "Tutorial", values);
             }
             else
             {
                 MonoBehaviourSingleton <NativeGameService> .I.SetOldUserLogin();
             }
         }
         GameSection.ResumeEvent(success, null);
     });
 }
コード例 #8
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");
    }
コード例 #9
0
    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);
    }
コード例 #10
0
 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);
         });
     }
 }
コード例 #11
0
 public void OnCloseDialog_QuestAcceptRoomInvalid()
 {
     //IL_0024: Unknown result type (might be due to invalid IL or missing references)
     this.StartCoroutine(Reload(delegate(bool b)
     {
         GameSection.ResumeEvent(b, null);
     }));
 }
コード例 #12
0
 private void OnQuery_PRESENT()
 {
     GameSection.StayEvent();
     MonoBehaviourSingleton <PresentManager> .I.SendGetPresent(0, delegate(bool is_success)
     {
         GameSection.ResumeEvent(is_success, null);
     });
 }
コード例 #13
0
 private void OnQuery_ITEM_SHOP()
 {
     GameSection.StayEvent();
     MonoBehaviourSingleton <ShopManager> .I.SendGetShop(delegate(bool is_success)
     {
         GameSection.ResumeEvent(is_success, null);
     });
 }
コード例 #14
0
 private Action GetFinishActionMaterial(ShopReceiver.PaymentPurchaseData purchaseData)
 {
     return(delegate
     {
         GameSection.ChangeStayEvent("BUNDLE_NOTICE", purchaseData);
         GameSection.ResumeEvent(true, null);
     });
 }
コード例 #15
0
 private void SendSell()
 {
     GameSection.StayEvent();
     MonoBehaviourSingleton <ItemExchangeManager> .I.SendInventorySellAbilityItem(uniqs, delegate(bool is_success)
     {
         GameSection.ResumeEvent(is_success, null);
     });
 }
コード例 #16
0
 private void StartQuest()
 {
     GameSection.StayEvent();
     CoopApp.EnterArenaQuestOffline(delegate(bool isMatching, bool isConnect, bool isRegist, bool isStart)
     {
         GameSection.ResumeEvent(isStart, null);
     });
 }
コード例 #17
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);
     });
 }
コード例 #18
0
 private void QuestResume(bool is_success)
 {
     if (!is_success)
     {
         AnimBtnInvisible(false);
     }
     GameSection.ResumeEvent(is_success, null);
 }
コード例 #19
0
 private void OnQuery_SEND()
 {
     GameSection.StayEvent();
     MonoBehaviourSingleton <SmithManager> .I.SendUseAbilityItem(equipItemInfo.uniqueID, abilityItemInfo.GetUniqID(), delegate(Error error, EquipItemInfo itemInfo)
     {
         GameSection.ResumeEvent(error != Error.None, null);
     });
 }
コード例 #20
0
 private void SendStopper(bool enable)
 {
     GameSection.StayEvent();
     MonoBehaviourSingleton <UserInfoManager> .I.SendStopper(enable, delegate(bool is_success)
     {
         GameSection.ResumeEvent(is_success, null);
     });
 }
コード例 #21
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);
     });
 }
コード例 #22
0
 private void OnQuery_MUTUAL_FOLLOW()
 {
     GameSection.StayEvent();
     MonoBehaviourSingleton <FriendManager> .I.SendGetFollowLink(delegate(bool is_success)
     {
         GameSection.ResumeEvent(is_success, null);
     });
 }
コード例 #23
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);
     });
 }
コード例 #24
0
 private void OnQuery_SEND_GET_NOREAD_MESSAGE()
 {
     GameSection.StayEvent();
     MonoBehaviourSingleton <FriendManager> .I.SendGetNoreadMessage(delegate(bool is_success)
     {
         GameSection.ResumeEvent(is_success, null);
     });
 }
コード例 #25
0
 protected virtual void OnQuery_SEND()
 {
     GameSection.StayEvent();
     MonoBehaviourSingleton <UserInfoManager> .I.SendOpinionMessage(GetInputValue((Enum)UI.IPT_TEXT), delegate(bool is_success)
     {
         GameSection.ResumeEvent(is_success, null);
     });
 }
コード例 #26
0
    private void SendDeliveryComplete(int index, int delivery_id, bool is_enough_material, bool is_happen_quest)
    {
        DeliveryTable.DeliveryData table = Singleton <DeliveryTable> .I.GetDeliveryTableData((uint)deliveryInfo[index].dId);

        changeToDeliveryClearEvent = true;
        bool is_tutorial        = !TutorialStep.HasFirstDeliveryCompleted();
        bool enable_clear_event = table.clearEventID != 0;

        MonoBehaviourSingleton <DeliveryManager> .I.SendDeliveryComplete(deliveryInfo[index].uId, enable_clear_event, delegate(bool is_success, DeliveryRewardList recv_reward)
        {
            if (is_success)
            {
                List <FieldMapTable.PortalTableData> deliveryRelationPortalData = Singleton <FieldMapTable> .I.GetDeliveryRelationPortalData((uint)delivery_id);
                for (int i = 0; i < deliveryRelationPortalData.Count; i++)
                {
                    GameSaveData.instance.newReleasePortals.Add(deliveryRelationPortalData[i].portalID);
                }
                if (is_tutorial)
                {
                    TutorialStep.isSendFirstRewardComplete = true;
                }
                if (!enable_clear_event)
                {
                    MonoBehaviourSingleton <DeliveryManager> .I.isStoryEventEnd = false;
                    if (is_happen_quest)
                    {
                        GameSection.ChangeStayEvent("DELIVERY_REWARD_HAPPEN", new object[2]
                        {
                            delivery_id,
                            recv_reward
                        });
                    }
                    else
                    {
                        GameSection.ChangeStayEvent("DELIVERY_REWARD", new object[2]
                        {
                            delivery_id,
                            recv_reward
                        });
                    }
                }
                else
                {
                    GameSection.ChangeStayEvent("CLEAR_EVENT", new object[3]
                    {
                        (int)table.clearEventID,
                        delivery_id,
                        recv_reward
                    });
                }
            }
            else
            {
                changeToDeliveryClearEvent = false;
            }
            GameSection.ResumeEvent(is_success, null);
        });
    }
コード例 #27
0
 private void CheckEquipChange()
 {
     tweenTarget = null;
     GameSection.StayEvent();
     MonoBehaviourSingleton <StatusManager> .I.CheckChangeEquip(equipSetNo, delegate(bool is_success)
     {
         GameSection.ResumeEvent(is_success, null);
     });
 }
コード例 #28
0
 private void OnQuery_NO()
 {
     GameSection.StayEvent();
     MonoBehaviourSingleton <GuildRequestManager> .I.SendGuildRequestRetire(delegate(bool questCompleteData)
     {
         GameSection.ResumeEvent(true, null);
         GameSection.SetEventData(questCompleteData);
     });
 }
コード例 #29
0
 private void OnQuery_AUTO_PROLOGUE()
 {
     GameSection.StayEvent();
     MonoBehaviourSingleton <QuestManager> .I.SendQuestReadEventStory(eventData.eventId, delegate(bool success, Error error)
     {
         eventData.readPrologueStory = true;
         GameSection.ResumeEvent(success, null);
     });
 }
コード例 #30
0
 private void OnQuery_SEARCH()
 {
     MonoBehaviourSingleton <GuildManager> .I.mSearchKeywork = mSearchKeywork;
     GameSection.StayEvent();
     MonoBehaviourSingleton <GuildManager> .I.SendSearch(delegate(bool is_success, Error err)
     {
         GameSection.ResumeEvent(is_success, null);
     }, true);
 }