Example #1
0
        private void TryLogin2MainScene()
        {
            if (mIsMainWindow == false || mIsMainMode == false)
            {
                return;
            }
            GTimer.CancelAll("LoadMainModeTimeOut");
            WindowManager.GetSingleton().DestoryWidowByName(LoginView.VIEW_KEY);
            PlayerManager.GetSingleton().pHero.NofityPlayerEvent(new Air2000.Event((int)PlayerEventType.PE_NotifyEnterMainScene));

            this.NotifySceneEvent(new Air2000.Event((int)SceneEventType.SE_CompletedLoading));
        }
Example #2
0
        private void GotoMainScene()
        {
            if (mIsNotify == true)
            {
                return;
            }
            CancelInvoke("Timeout");

            PlayerManager.GetSingleton().NotifyListener(IPlayerManagerListenerEventType.OnPlayerLogin);

            GameContext.GetInstance().GotoScene(SceneType.CityScene);

            mIsNotify = true;
        }
Example #3
0
        void RegisterPlayerEvent()
        {
            if (PlayerManager.GetSingleton().pHero != null)
            {
                mPlayerEventQueue = new EventHandlerQueue(PlayerManager.GetSingleton().pHero.pEventManager);
                mPlayerEventQueue.Add((int)PlayerEventType.PE_NotifyMianModeEnd, MianModeEnd);
            }

            if (mNetMsgQueue == null)
            {
                mNetMsgQueue = new EventHandlerQueue(NetworkEventProcessor.GetInstance());
            }

            mNetMsgQueue.Add((int)NetWorkEventType.NE_LoginFailed, OnLoginFail);
        }
Example #4
0
 public BaseListenerControl(BaseModel varModel)
     : base(varModel)
 {
     PlayerManager.GetSingleton().AddListener(this);
 }
Example #5
0
 public void NotifyListener(IPlayerManagerListenerEventType varEvtType)
 {
     NotifyListener(varEvtType, PlayerManager.GetSingleton().pHero);
 }
Example #6
0
 public void RegisterEvent()
 {
     mPlayerEventQueue = new EventHandlerQueue(PlayerManager.GetSingleton().pHero.pEventManager);
 }