Example #1
0
    public void trackQuestStart(uint questID)
    {
        QuestTable.QuestTableData questData = Singleton <QuestTable> .I.GetQuestData(questID);

        if (questData != null)
        {
            if (questData.eventId > 0)
            {
                Dictionary <string, object> dictionary = new Dictionary <string, object>();
                dictionary.Add("quest_id", questID);
                dictionary.Add("user_level", MonoBehaviourSingleton <UserInfoManager> .I.userStatus.level);
                dictionary.Add("boss_level", questData.enemyLv[0]);
                dictionary.Add("boss_id", questData.enemyID[0]);
                GoWrap.INSTANCE.trackEvent("expedition_start", "Gameplay", dictionary);
            }
            else if (questData.questType == QUEST_TYPE.ORDER)
            {
                Dictionary <string, object> dictionary2 = new Dictionary <string, object>();
                dictionary2.Add("user_level", MonoBehaviourSingleton <UserInfoManager> .I.userStatus.level);
                dictionary2.Add("boss_level", questData.enemyLv[0]);
                dictionary2.Add("boss_id", questData.enemyID[0]);
                dictionary2.Add("is_meeting_room", LoungeMatchingManager.IsValidInLounge());
                GoWrap.INSTANCE.trackEvent("quest_start", "Gameplay", dictionary2);
            }
        }
    }
Example #2
0
    private bool CheckInvitedClanBySNS()
    {
        string @string = PlayerPrefs.GetString("ic");

        if (!string.IsNullOrEmpty(@string))
        {
            PlayerPrefs.SetString("ic", string.Empty);
            if (MonoBehaviourSingleton <GameSceneManager> .I.IsExecutionAutoEvent() && TutorialStep.HasAllTutorialCompleted())
            {
                MonoBehaviourSingleton <GameSceneManager> .I.StopAutoEvent(null);
            }
            string name = "MAIN_MENU_HOME";
            if (LoungeMatchingManager.IsValidInLounge())
            {
                name = "MAIN_MENU_LOUNGE";
            }
            EventData[] autoEvents = new EventData[4]
            {
                new EventData(name, null),
                new EventData("GUILD", null),
                new EventData("SEARCH", null),
                new EventData("INFO", 97)
            };
            if (TutorialStep.HasAllTutorialCompleted())
            {
                MonoBehaviourSingleton <GameSceneManager> .I.SetAutoEvents(autoEvents);

                return(true);
            }
        }
        return(false);
    }
Example #3
0
    private IEnumerator Start()
    {
        while (!MonoBehaviourSingleton <StageManager> .IsValid() || MonoBehaviourSingleton <StageManager> .I.isLoading)
        {
            yield return((object)null);
        }
        HomeCamera        = this.get_gameObject().AddComponent <HomeCamera>();
        HomePeople        = this.get_gameObject().AddComponent <HomePeople>();
        HomeFeatureBanner = this.get_gameObject().AddComponent <HomeFeatureBanner>();
        TableSet          = this.get_gameObject().AddComponent <LoungeTableSet>();
        while (!HomeCamera.isInitialized || !HomePeople.isInitialized || !TableSet.isInitialized)
        {
            yield return((object)null);
        }
        LoungeMatchingManager i = MonoBehaviourSingleton <LoungeMatchingManager> .I;

        i.OnChangeMemberStatus = (Action <LoungeMemberStatus>)Delegate.Combine(i.OnChangeMemberStatus, new Action <LoungeMemberStatus>(OnChangeMemberStatus));
        if (LoungeMatchingManager.IsValidInLounge())
        {
            MonoBehaviourSingleton <LoungeMatchingManager> .I.SendInLounge();
        }
        IsInitialized = true;
        yield return((object)this.StartCoroutine(SendLoungeInfoForce()));

        yield return((object)this.StartCoroutine(CreateLoungePlayerFromSlotInfo()));

        yield return((object)this.StartCoroutine(LoadSE()));

        PlayWaveSound();
    }
Example #4
0
    protected override void _OnDestroy()
    {
        LoungeMatchingManager i = MonoBehaviourSingleton <LoungeMatchingManager> .I;

        i.OnChangeMemberStatus = (Action <LoungeMemberStatus>)Delegate.Remove(i.OnChangeMemberStatus, new Action <LoungeMemberStatus>(OnChangeMemberStatus));
        base._OnDestroy();
    }
Example #5
0
    public override void UpdateUI()
    {
        if (!PartyManager.IsValidNotEmptyList() && !GuildManager.IsValidNotEmptyInviteList() && !GuildManager.IsValidNotEmptyDonateInviteList())
        {
            MonoBehaviourSingleton <UserInfoManager> .I.ClearPartyInvite();

            MonoBehaviourSingleton <UIManager> .I.invitationButton.Close(UITransition.TYPE.CLOSE);

            MonoBehaviourSingleton <UIManager> .I.invitationInGameButton.Close(UITransition.TYPE.CLOSE);
        }
        if (!PartyManager.IsValidNotEmptyList() && !LoungeMatchingManager.IsValidNotEmptyList() && !LoungeMatchingManager.IsValidNotEmptyRallyList() && !GuildManager.IsValidNotEmptyInviteList() && !GuildManager.IsValidNotEmptyDonateInviteList())
        {
            SetActive((Enum)UI.GRD_QUEST, false);
            SetActive((Enum)UI.TBL_QUEST, false);
            SetActive((Enum)UI.STR_NON_LIST, true);
        }
        else
        {
            parties = MonoBehaviourSingleton <PartyManager> .I.partys.ToArray();

            lounges = MonoBehaviourSingleton <LoungeMatchingManager> .I.lounges.ToArray();

            rallyInvites = MonoBehaviourSingleton <LoungeMatchingManager> .I.rallyInvite.ToArray();

            guildInvites = MonoBehaviourSingleton <GuildManager> .I.guildInviteList.ToArray();

            guildDonateInvites = MonoBehaviourSingleton <GuildManager> .I.donateInviteList.ToArray();

            SetActive((Enum)UI.TBL_QUEST, true);
            SetActive((Enum)UI.GRD_QUEST, true);
            SetActive((Enum)UI.STR_NON_LIST, false);
            UpdateTable();
        }
    }
Example #6
0
 public void UpdateListUI()
 {
     SetLabelText((Enum)UI.STR_TITLE, base.sectionData.GetText("STR_TITLE"));
     SetLabelText((Enum)UI.STR_TITLE_REFLECT, base.sectionData.GetText("STR_TITLE"));
     SetText((Enum)UI.LBL_SORT, "STR_SORT_" + currentSortType.ToString());
     if (inviteUsers == null || inviteUsers.Length == 0)
     {
         SetActive((Enum)UI.STR_NON_LIST, true);
         SetActive((Enum)UI.GRD_LIST, false);
         SetButtonEnabled((Enum)UI.BTN_PAGE_PREV, false);
         SetButtonEnabled((Enum)UI.BTN_PAGE_NEXT, false);
         SetLabelText((Enum)UI.LBL_NOW, "0");
         SetLabelText((Enum)UI.LBL_MAX, "0");
     }
     else
     {
         SetLabelText((Enum)UI.LBL_NOW, (nowPage + 1).ToString());
         SetActive((Enum)UI.STR_NON_LIST, false);
         SetActive((Enum)UI.GRD_LIST, true);
         SetButtonEnabled((Enum)UI.BTN_PAGE_PREV, nowPage > 0);
         SetButtonEnabled((Enum)UI.BTN_PAGE_NEXT, nowPage + 1 < pageNumMax);
         SetDynamicList((Enum)UI.GRD_LIST, "QuestInviteeSelectListItem", inviteUsers.Length, false, (Func <int, bool>) null, (Func <int, Transform, Transform>) null, (Action <int, Transform, bool>) delegate(int i, Transform t, bool is_recycle)
         {
             PartyInviteCharaInfo partyInviteCharaInfo = inviteUsers[i];
             SetupListItem(partyInviteCharaInfo, i, t, is_recycle);
             SetFollowStatus(t, partyInviteCharaInfo.userId, partyInviteCharaInfo.following, partyInviteCharaInfo.follower);
             if (LoungeMatchingManager.IsValidInLounge())
             {
                 SetActive(t, UI.SPR_ICON_FIRST_MET, MonoBehaviourSingleton <LoungeMatchingManager> .I.CheckFirstMet(partyInviteCharaInfo.userId));
             }
         });
     }
 }
Example #7
0
 private void InitGuild(int index, Transform t)
 {
     GuildInvitedModel.GuildInvitedInfo guildInvitedInfo = guildInvites[index];
     if (LoungeMatchingManager.IsValidInLounge())
     {
         SetEvent(t, "SELECT_GUILD_LOUNGE", guildInvitedInfo);
     }
     else
     {
         SetEvent(t, "SELECT_GUILD_HOME", guildInvitedInfo);
     }
     SetLabelText(t, UI.LBL_GUILD_NAME, guildInvitedInfo.name);
     SetLabelText(t, UI.LBL_HOST_LV, guildInvitedInfo.level);
     if (guildInvitedInfo.emblem != null && guildInvitedInfo.emblem.Length >= 3)
     {
         SetSprite(t, UI.SPR_EMBLEM_LAYER_1, GuildItemManager.I.GetItemSprite(guildInvitedInfo.emblem[0]));
         SetSprite(t, UI.SPR_EMBLEM_LAYER_2, GuildItemManager.I.GetItemSprite(guildInvitedInfo.emblem[1]));
         SetSprite(t, UI.SPR_EMBLEM_LAYER_3, GuildItemManager.I.GetItemSprite(guildInvitedInfo.emblem[2]));
     }
     else
     {
         SetSprite(t, UI.SPR_EMBLEM_LAYER_1, string.Empty);
         SetSprite(t, UI.SPR_EMBLEM_LAYER_2, string.Empty);
         SetSprite(t, UI.SPR_EMBLEM_LAYER_3, string.Empty);
     }
     SetLabelText(t, UI.LBL_HOST_NAME, guildInvitedInfo.admin);
     SetLabelText(t, UI.LBL_USER_INVITE, guildInvitedInfo.sender + "'s recruiting");
     SetLabelText(t, UI.LBL_MEM_NUM, guildInvitedInfo.currentMem + "/" + guildInvitedInfo.memCap);
 }
Example #8
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);
            });
        }
    }
Example #9
0
    private bool CheckInvitedPartyBySNS()
    {
        string @string = PlayerPrefs.GetString("im");

        if (!string.IsNullOrEmpty(@string))
        {
            MonoBehaviourSingleton <PartyManager> .I.InviteValue = @string;
            PlayerPrefs.SetString("im", string.Empty);
            if (MonoBehaviourSingleton <GameSceneManager> .I.IsExecutionAutoEvent() && TutorialStep.HasAllTutorialCompleted())
            {
                MonoBehaviourSingleton <GameSceneManager> .I.StopAutoEvent(null);
            }
            string name = "MAIN_MENU_HOME";
            if (LoungeMatchingManager.IsValidInLounge())
            {
                name = "MAIN_MENU_LOUNGE";
            }
            EventData[] autoEvents = new EventData[3]
            {
                new EventData(name, null),
                new EventData("GACHA_QUEST_COUNTER", null),
                new EventData("INVITED_ROOM", null)
            };
            if (TutorialStep.HasAllTutorialCompleted())
            {
                MonoBehaviourSingleton <GameSceneManager> .I.SetAutoEvents(autoEvents);

                return(true);
            }
        }
        return(false);
    }
Example #10
0
 private void InitRally()
 {
     //IL_001a: Unknown result type (might be due to invalid IL or missing references)
     //IL_003f: Unknown result type (might be due to invalid IL or missing references)
     //IL_0044: Unknown result type (might be due to invalid IL or missing references)
     //IL_0063: Unknown result type (might be due to invalid IL or missing references)
     //IL_0068: Unknown result type (might be due to invalid IL or missing references)
     //IL_0087: Unknown result type (might be due to invalid IL or missing references)
     //IL_008c: Unknown result type (might be due to invalid IL or missing references)
     //IL_00b1: Unknown result type (might be due to invalid IL or missing references)
     //IL_00d6: Unknown result type (might be due to invalid IL or missing references)
     //IL_00db: Unknown result type (might be due to invalid IL or missing references)
     //IL_00fa: Unknown result type (might be due to invalid IL or missing references)
     //IL_00ff: Unknown result type (might be due to invalid IL or missing references)
     //IL_011e: Unknown result type (might be due to invalid IL or missing references)
     //IL_0123: Unknown result type (might be due to invalid IL or missing references)
     if (LoungeMatchingManager.IsValidInLounge() && !QuestManager.IsValidInGameArena())
     {
         rallyBtn.get_gameObject().SetActive(true);
         autoBtn.GetComponent <TweenPosition>().to        = new Vector3(0f, 410f, 0f);
         btnRootGroup.GetComponent <TweenPosition>().from = new Vector3(0f, -40f, 0f);
         btnFrameOver.GetComponent <TweenPosition>().to   = new Vector3(-4f, 337f, 0f);
         btnFrame.GetComponent <TweenWidth>().to          = 550;
     }
     else
     {
         rallyBtn.get_gameObject().SetActive(false);
         autoBtn.GetComponent <TweenPosition>().to        = new Vector3(0f, 355f, 0f);
         btnRootGroup.GetComponent <TweenPosition>().from = new Vector3(0f, 24f, 0f);
         btnFrameOver.GetComponent <TweenPosition>().to   = new Vector3(0f, 280f, 0f);
         btnFrame.GetComponent <TweenWidth>().to          = 470;
     }
 }
 protected virtual void SetListItem(int i, Transform t, bool is_recycle, FriendCharaInfo data)
 {
     SetFollowStatus(t, data.userId, data.following, data.follower);
     SetCharaInfo(data, i, t, is_recycle, 0 == data.userId);
     if (LoungeMatchingManager.IsValidInLounge())
     {
         SetActive(t, UI.SPR_ICON_FIRST_MET, MonoBehaviourSingleton <LoungeMatchingManager> .I.CheckFirstMet(data.userId));
     }
 }
    protected override void OnQuery_SELECT_LOUNGE()
    {
        int           index         = (int)GameSection.GetEventData();
        StringBuilder stringBuilder = new StringBuilder();

        stringBuilder.Append(MonoBehaviourSingleton <LoungeMatchingManager> .I.lounges[index].loungeNumber);
        stringBuilder.Append("_");
        stringBuilder.Append(LoungeMatchingManager.GenerateToken());
        PlayerPrefs.SetString("il", stringBuilder.ToString());
        BackToHome();
    }
Example #13
0
    private void OnQuery_SKIP()
    {
        //IL_00d8: Unknown result type (might be due to invalid IL or missing references)
        //IL_00ee: Unknown result type (might be due to invalid IL or missing references)
        //IL_00fb: Expected O, but got Unknown
        GameSection.StopEvent();
        if (eventID == 80000001)
        {
            if (LoungeMatchingManager.IsValidInLounge())
            {
                MonoBehaviourSingleton <GameSceneManager> .I.ChangeScene("Lounge", null, UITransition.TYPE.CLOSE, UITransition.TYPE.OPEN, false);
            }
            else
            {
                MonoBehaviourSingleton <GameSceneManager> .I.ChangeScene("Home", null, UITransition.TYPE.CLOSE, UITransition.TYPE.OPEN, false);
            }
        }
        else if (!string.IsNullOrEmpty(requestEndEvent))
        {
            EventData[] autoEvents = new EventData[1]
            {
                new EventData(requestEndEvent, null)
            };
            MonoBehaviourSingleton <GameSceneManager> .I.SetAutoEvents(autoEvents);
        }
        else if (requestEndEventArray != null)
        {
            MonoBehaviourSingleton <StoryDirector> .I.HideBG();

            MonoBehaviourSingleton <GameSceneManager> .I.SetAutoEvents(requestEndEventArray);
        }
        else if (MonoBehaviourSingleton <InGameManager> .I.questTransferInfo != null)
        {
            MonoBehaviourSingleton <AppMain> .I.mainCamera.get_gameObject().SetActive(false);

            MonoBehaviourSingleton <GameSceneManager> .I.ExecuteSceneEvent("InGameProgress", this.get_gameObject(), "INTERVAL", null, null, true);
        }
        else
        {
            MonoBehaviourSingleton <StoryDirector> .I.HideBG();

            string      name        = (!MonoBehaviourSingleton <LoungeMatchingManager> .I.IsInLounge()) ? "MAIN_MENU_HOME" : "MAIN_MENU_LOUNGE";
            EventData[] autoEvents2 = new EventData[2]
            {
                new EventData(name, null),
                new EventData("DELIVERY_CLEAR_REWARD", eventData)
            };
            MonoBehaviourSingleton <GameSceneManager> .I.SetAutoEvents(autoEvents2);
        }
    }
Example #14
0
 public void OnClickReturn()
 {
     //IL_0030: Unknown result type (might be due to invalid IL or missing references)
     //IL_0039: Expected O, but got Unknown
     if (MonoBehaviourSingleton <GameSceneManager> .I.IsEventExecutionPossible())
     {
         string event_name = "RETURN";
         if (LoungeMatchingManager.IsValidInLounge())
         {
             event_name = "RETURN_LOUNGE";
         }
         MonoBehaviourSingleton <GameSceneManager> .I.ExecuteSceneEvent("UIInGameFieldMenu.OnClickReturn", this.get_gameObject(), event_name, null, null, true);
     }
 }
Example #15
0
    public void trackQuestEnd(uint questID, bool isSuccess)
    {
        QuestTable.QuestTableData questData = Singleton <QuestTable> .I.GetQuestData(questID);

        if (questData != null && questData.eventId == 0 && questData.questType == QUEST_TYPE.ORDER)
        {
            Dictionary <string, object> dictionary = new Dictionary <string, object>();
            dictionary.Add("user_level", MonoBehaviourSingleton <UserInfoManager> .I.userStatus.level);
            dictionary.Add("boss_level", questData.enemyLv[0]);
            dictionary.Add("boss_id", questData.enemyID[0]);
            dictionary.Add("is_meeting_room", LoungeMatchingManager.IsValidInLounge());
            dictionary.Add("is_success", isSuccess);
            GoWrap.INSTANCE.trackEvent("quest_end", "Gameplay", dictionary);
        }
    }
Example #16
0
	private void Update()
	{
		if (backSection && MonoBehaviourSingleton<GameSceneManager>.I.IsEventExecutionPossible() && !MonoBehaviourSingleton<GameSceneManager>.I.isChangeing)
		{
			backSection = false;
			if (LoungeMatchingManager.IsValidInLounge())
			{
				MonoBehaviourSingleton<GameSceneManager>.I.ChangeScene("Lounge", "GuildDonateMaterialSelectDialog", UITransition.TYPE.CLOSE, UITransition.TYPE.OPEN, false);
			}
			else
			{
				MonoBehaviourSingleton<GameSceneManager>.I.ChangeScene("Home", "GuildDonateMaterialSelectDialog", UITransition.TYPE.CLOSE, UITransition.TYPE.OPEN, false);
			}
		}
	}
Example #17
0
 private IEnumerator SetAutoEventLoungeToLounge(string inviteLoungeValue)
 {
     while (!LoungeMatchingManager.IsValidInLounge())
     {
         yield return((object)null);
     }
     string[] values = inviteLoungeValue.Split('_');
     if (!(values[0] == MonoBehaviourSingleton <LoungeMatchingManager> .I.loungeData.loungeNumber))
     {
         EventData[] auto_event_data = new EventData[5]
         {
             new EventData("MAIN_MENU_LOUNGE", null),
             new EventData("LOUNGE_SETTINGS", null),
             new EventData("EXIT", null),
             new EventData("LOUNGE", null),
             new EventData("INVITED_LOUNGE", null)
         };
         MonoBehaviourSingleton <GameSceneManager> .I.SetAutoEvents(auto_event_data);
     }
 }
Example #18
0
    public bool OnRecvRoomAFKKick(Lounge_Model_AFK_Kick model)
    {
        Logd("OnRecvAFKKick. cId = {0}", model.cid);
        if (!LoungeMatchingManager.IsValidInLounge())
        {
            return(true);
        }
        LoungeModel.SlotInfo slotInfoByUserId = MonoBehaviourSingleton <LoungeMatchingManager> .I.GetSlotInfoByUserId(model.cid);

        if (slotInfoByUserId == null || slotInfoByUserId.userInfo == null)
        {
            return(true);
        }
        MonoBehaviourSingleton <LoungeMatchingManager> .I.Kick(model.cid);

        if (chatConnection != null)
        {
            chatConnection.OnReceiveNotification(StringTable.Format(STRING_CATEGORY.LOUNGE, 19u, slotInfoByUserId.userInfo.name));
        }
        return(true);
    }
Example #19
0
 public void ToGachaQuest()
 {
     if (MonoBehaviourSingleton <GameSceneManager> .I.GetCurrentSceneName() == "HomeScene")
     {
         ChangeScene("Home", "QuestAcceptSearchListSelect");
     }
     else if (MonoBehaviourSingleton <GameSceneManager> .I.GetCurrentSceneName() == "LoungeScene")
     {
         ChangeScene("Lounge", "QuestAcceptSearchListSelect");
     }
     else if (LoungeMatchingManager.IsValidInLounge())
     {
         OnQuery_MAIN_MENU_LOUNGE();
         MonoBehaviourSingleton <LoungeManager> .I.IsJumpToGacha = true;
     }
     else
     {
         OnQuery_MAIN_MENU_HOME();
         MonoBehaviourSingleton <HomeManager> .I.IsJumpToGacha = true;
     }
 }
Example #20
0
    public override void UpdateUI()
    {
        if (!LoungeMatchingManager.IsValidNotEmptyList())
        {
            SetActive((Enum)UI.GRD_LOUNGE, false);
            SetActive((Enum)UI.STR_NON_LIST, true);
        }
        else
        {
            lounges = MonoBehaviourSingleton <LoungeMatchingManager> .I.lounges.ToArray();

            SetActive((Enum)UI.GRD_LOUNGE, true);
            SetActive((Enum)UI.STR_NON_LIST, false);
            SetGrid(UI.GRD_LOUNGE, "LoungeSearchListItem", lounges.Length, false, delegate(int i, Transform t, bool is_recycle)
            {
                SetEvent(t, "SELECT_LOUNGE", i);
                SetLoungeData(lounges[i], t);
            });
            base.UpdateUI();
        }
    }
Example #21
0
    protected override void Awake()
    {
        //IL_0008: Unknown result type (might be due to invalid IL or missing references)
        //IL_000d: Expected O, but got Unknown
        //IL_0053: Unknown result type (might be due to invalid IL or missing references)
        instance   = this;
        _transform = this.get_transform();
        if (MonoBehaviourSingleton <ScreenOrientationManager> .IsValid())
        {
            MonoBehaviourSingleton <ScreenOrientationManager> .I.OnScreenRotate += OnScreenRotate;
            OnScreenRotate(MonoBehaviourSingleton <ScreenOrientationManager> .I.isPortrait);
        }
        base.Awake();
        if (!FieldManager.IsValidInGameNoQuest())
        {
            this.get_gameObject().SetActive(false);
        }
        bool flag = LoungeMatchingManager.IsValidInLounge();

        SetVisibleButton("BTN_HOME", flag);
        SetVisibleButton("BTN_LOUNGE", !flag);
        SetVisibleButton("BTN_MEMBER_LIST", flag);
        SetVisibleButton("BTN_LOUNGE_MEMBER", !flag);
    }
    public SceneData GetSceneDataFromSectionName(string section_name)
    {
        SceneData find_data = null;

        if (!string.IsNullOrEmpty(section_name))
        {
            sceneDataTable.ForEach(delegate(SceneData o)
            {
                if (find_data == (SceneData)null && o.GetSectionData(section_name) != (SectionData)null)
                {
                    find_data = o;
                    if (LoungeMatchingManager.IsValidInLounge() && o.sceneName == "Home")
                    {
                        find_data = null;
                    }
                    if (!LoungeMatchingManager.IsValidInLounge() && o.sceneName == "Lounge")
                    {
                        find_data = null;
                    }
                }
            });
        }
        return(find_data);
    }
Example #23
0
    private bool CheckMutualFollowBySNS()
    {
        string @string = PlayerPrefs.GetString("fc");

        if (!string.IsNullOrEmpty(@string))
        {
            MonoBehaviourSingleton <FriendManager> .I.MutualFollowValue = @string;
            PlayerPrefs.SetString("fc", string.Empty);
            if (MonoBehaviourSingleton <GameSceneManager> .I.IsExecutionAutoEvent() && TutorialStep.HasAllTutorialCompleted())
            {
                MonoBehaviourSingleton <GameSceneManager> .I.StopAutoEvent(null);
            }
            string name = "MAIN_MENU_HOME";
            if (LoungeMatchingManager.IsValidInLounge())
            {
                name = "MAIN_MENU_LOUNGE";
            }
            EventData[] autoEvents = new EventData[6]
            {
                new EventData(name, null),
                new EventData("MUTUAL_FOLLOW", null),
                new EventData("MAIN_MENU_MENU", null),
                new EventData("FRIEND", null),
                new EventData("FOLLOW_LIST", null),
                new EventData("MUTUAL_FOLLOW_MESSAGE", null)
            };
            if (TutorialStep.HasAllTutorialCompleted())
            {
                PlayerPrefs.SetString("fc", string.Empty);
                MonoBehaviourSingleton <GameSceneManager> .I.SetAutoEvents(autoEvents);

                return(true);
            }
        }
        return(false);
    }
    public static void ProcessGotoEvent(string msg)
    {
        string text = msg.Replace("goto:", string.Empty);

        Debug.Log((object)("[goto]:" + text));
        string name = "MAIN_MENU_HOME";

        if (LoungeMatchingManager.IsValidInLounge())
        {
            name = "MAIN_MENU_LOUNGE";
        }
        EventData[] array = null;
        switch (text)
        {
        case "gacha":
            array = new EventData[1]
            {
                new EventData("MAIN_MENU_SHOP", null)
            };
            MonoBehaviourSingleton <GameSceneManager> .I.SetAutoEvents(array);

            break;

        case "magi_gacha":
            array = new EventData[2]
            {
                new EventData("MAIN_MENU_SHOP", null),
                new EventData("MAGI_GACHA", null)
            };
            MonoBehaviourSingleton <GameSceneManager> .I.SetAutoEvents(array);

            break;

        case "inn":
            array = new EventData[1]
            {
                new EventData("MAIN_MENU_STUDIO", null)
            };
            MonoBehaviourSingleton <GameSceneManager> .I.SetAutoEvents(array);

            break;

        case "quest":
            array = new EventData[2]
            {
                new EventData(name, null),
                new EventData("QUEST_COUNTER", null)
            };
            MonoBehaviourSingleton <GameSceneManager> .I.SetAutoEvents(array);

            break;

        case "event_quest":
            array = new EventData[3]
            {
                new EventData(name, null),
                new EventData("QUEST_COUNTER", null),
                new EventData("TO_EVENT_LIST", null)
            };
            MonoBehaviourSingleton <GameSceneManager> .I.SetAutoEvents(array);

            break;

        case "gacha_quest":
            array = new EventData[3]
            {
                new EventData(name, null),
                new EventData("GACHA_QUEST_COUNTER", null),
                new EventData("TO_GACHA_QUEST_COUNTER", null)
            };
            MonoBehaviourSingleton <GameSceneManager> .I.SetAutoEvents(array);

            break;

        case "explore_quest":
            array = new EventData[2]
            {
                new EventData(name, null),
                new EventData("EXPLORE", null)
            };
            MonoBehaviourSingleton <GameSceneManager> .I.SetAutoEvents(array);

            break;

        case "point_shop":
            array = new EventData[2]
            {
                new EventData(name, null),
                new EventData("POINT_SHOP", null)
            };
            MonoBehaviourSingleton <GameSceneManager> .I.SetAutoEvents(array);

            break;

        case "bingo":
            array = new EventData[2]
            {
                new EventData(name, null),
                new EventData("BINGO", true)
            };
            MonoBehaviourSingleton <GameSceneManager> .I.SetAutoEvents(array);

            break;

        case "arena":
        {
            EventData eventData = ((int)MonoBehaviourSingleton <UserInfoManager> .I.userStatus.level >= 50) ? new EventData("SELECT_ARENA", null) : new EventData("SELECT_DISABLE_ARENA", null);
            array = new EventData[3]
            {
                new EventData(name, null),
                new EventData("TO_EVENT", null),
                eventData
            };
            MonoBehaviourSingleton <GameSceneManager> .I.SetAutoEvents(array);

            break;
        }

        case "promotion":
            array = new EventData[2]
            {
                new EventData(name, null),
                new EventData("FRIEND_PROMOTION", null)
            };
            MonoBehaviourSingleton <GameSceneManager> .I.SetAutoEvents(array);

            break;

        default:
            if (text.StartsWith("login_bonus:"))
            {
                string s = text.Replace("login_bonus:", string.Empty);
                int.TryParse(s, out int result);
                if (result != 0)
                {
                    array = new EventData[2]
                    {
                        new EventData(name, null),
                        new EventData("LIMITED_LOGIN_BONUS_VIEW", result)
                    };
                    MonoBehaviourSingleton <GameSceneManager> .I.SetAutoEvents(array);
                }
            }
            else if (text.StartsWith("gacha_equip:"))
            {
                string text2  = text.Replace("gacha_equip:", string.Empty);
                int[]  array2 = new int[3]
                {
                    -1,
                    -1,
                    -1
                };
                string[] array3 = text2.Split(':');
                int      i      = 0;
                for (int num = array3.Length; i < num; i++)
                {
                    int.TryParse(array3[i], out array2[i]);
                }
                array = new EventData[2]
                {
                    new EventData("MAIN_MENU_SHOP", null),
                    new EventData("GACHA_EQUIP_LIST_FROM_NEWS", new object[3]
                    {
                        array2[0],
                        array2[1],
                        array2[2]
                    })
                };
                MonoBehaviourSingleton <GameSceneManager> .I.SetAutoEvents(array);
            }
            break;
        }
    }