Exemplo n.º 1
0
    public void Update(GameGuideType type)
    {
        foreach (GameGuideInfo current in this.m_GameGuide)
        {
            if (current.m_eType == type)
            {
                NrMyCharInfo myCharInfo = NrTSingleton <NkCharManager> .Instance.GetMyCharInfo();

                if (myCharInfo == null)
                {
                    break;
                }
                if (this.m_kCurrentGameGuideInfo == null || this.m_kCurrentGameGuideInfo.m_eType != current.m_eType)
                {
                    if (current.GetMinLevel() <= myCharInfo.GetLevel() && current.GetMaxLevel() >= myCharInfo.GetLevel() && current.CheckGameGuide())
                    {
                        bool flag = false;
                        foreach (GameGuideInfo current2 in this.m_kReserveGuide)
                        {
                            if (current2.m_eType == current.m_eType)
                            {
                                flag = true;
                                break;
                            }
                        }
                        if (!flag)
                        {
                            this.m_kReserveGuide.Enqueue(current);
                        }
                    }
                }
            }
        }
    }
Exemplo n.º 2
0
    public void RemoveGuide(GameGuideType Type)
    {
        if (this.m_kCurrentGameGuideInfo == null)
        {
            return;
        }
        if (!NrTSingleton <GameGuideManager> .Instance.ExecuteGuide && this.m_kCurrentGameGuideInfo.m_eType == Type)
        {
            NrTSingleton <GameGuideManager> .Instance.InitGameGuide();

            NoticeIconDlg.SetIcon(ICON_TYPE.GAMEGUIDE, false);
            NrTSingleton <FormsManager> .Instance.CloseForm(G_ID.BUBBLEGAMEGUIDE_DLG);
        }
    }
Exemplo n.º 3
0
 public void Set(GameGuideInfo gameGuideInfo)
 {
     this.m_nUnique          = gameGuideInfo.m_nUnique;
     this.m_eType            = gameGuideInfo.m_eType;
     this.m_eCheck           = gameGuideInfo.m_eCheck;
     this.m_nPriority        = gameGuideInfo.m_nPriority;
     this.m_nMinLevel        = gameGuideInfo.m_nMinLevel;
     this.m_nMaxLevel        = gameGuideInfo.m_nMaxLevel;
     this.m_strBaloonTextKey = gameGuideInfo.m_strBaloonTextKey;
     this.m_strTalkKey       = gameGuideInfo.m_strTalkKey;
     this.m_strButtonKey     = gameGuideInfo.m_strButtonKey;
     this.m_nDelayTime       = gameGuideInfo.m_nDelayTime;
     this.m_objData          = gameGuideInfo.m_objData;
     this.m_nCheckTime       = gameGuideInfo.m_nCheckTime;
 }
Exemplo n.º 4
0
 public virtual void Init()
 {
     this.m_nUnique          = 0;
     this.m_eType            = GameGuideType.DEFAULT;
     this.m_eCheck           = GameGuideCheck.NONE;
     this.m_nPriority        = 0;
     this.m_nMinLevel        = 0;
     this.m_nMaxLevel        = 0;
     this.m_strBaloonTextKey = string.Empty;
     this.m_strTalkKey       = string.Empty;
     this.m_strButtonKey     = string.Empty;
     this.m_nDelayTime       = 0f;
     this.m_objData          = null;
     this.m_nCheckTime       = 0f;
 }
    private void ShowGameGuideDlg(GameGuideType guideType)
    {
        NrTSingleton <GameGuideManager> .Instance.Update(GameGuideCheck.NONE, guideType);

        NrTSingleton <GameGuideManager> .Instance.Update();

        OnCloseCallback callback = null;

        if (this.ChallengeQuestUnique == 1504)
        {
            callback = new OnCloseCallback(Myth_Evolution_Main_DLG_ChallengeQuest.OnGuideEnd);
        }
        GameGuideDlg gameGuideDlg = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.GAMEGUIDE_DLG) as GameGuideDlg;

        gameGuideDlg.RegistCloseCallback(callback);
    }
Exemplo n.º 6
0
    public GameGuideInfo GetGuide(GameGuideType eType)
    {
        NrMyCharInfo myCharInfo = NrTSingleton <NkCharManager> .Instance.GetMyCharInfo();

        if (myCharInfo == null)
        {
            return(null);
        }
        foreach (GameGuideInfo current in this.m_GameGuide)
        {
            if (current.GetMinLevel() <= myCharInfo.GetLevel() && current.GetMaxLevel() >= myCharInfo.GetLevel() && eType == current.m_eType)
            {
                return(current);
            }
        }
        return(null);
    }
Exemplo n.º 7
0
    public bool ContinueCheck(GameGuideType type)
    {
        if (this.m_kCurrentGameGuideInfo == null)
        {
            return(false);
        }
        if (this.m_kCurrentGameGuideInfo.m_eType != type)
        {
            return(false);
        }
        NrMyCharInfo myCharInfo = NrTSingleton <NkCharManager> .Instance.GetMyCharInfo();

        if (myCharInfo == null)
        {
            return(false);
        }
        if (this.m_kCurrentGameGuideInfo.GetMinLevel() <= myCharInfo.GetLevel() && this.m_kCurrentGameGuideInfo.GetMaxLevel() >= myCharInfo.GetLevel() && this.m_kCurrentGameGuideInfo.CheckGameGuideOnce())
        {
            return(true);
        }
        this.InitGameGuide();
        return(false);
    }
Exemplo n.º 8
0
    private void ShowGameGuideDlg(GameGuideType guideType)
    {
        NrTSingleton <GameGuideManager> .Instance.Update(GameGuideCheck.NONE, guideType);

        NrTSingleton <GameGuideManager> .Instance.Update();

        OnCloseCallback callback = null;

        if (this._challengeQuestUnique == 1502)
        {
            callback = new OnCloseCallback(SolComposeMainDlg_challengequest.OnExtractSuccessGuideEnd);
        }
        else if (this._challengeQuestUnique == 1505)
        {
            callback = new OnCloseCallback(SolComposeMainDlg_challengequest.OnTranscendenceSuccessGuideEnd);
        }
        else if (this._challengeQuestUnique == 1499)
        {
            callback = new OnCloseCallback(SolComposeMainDlg_challengequest.OnComposeSuccessGuideEnd);
        }
        GameGuideDlg gameGuideDlg = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.GAMEGUIDE_DLG) as GameGuideDlg;

        gameGuideDlg.RegistCloseCallback(callback);
    }