コード例 #1
0
 void CloseAllConnections()
 {
     if (m_ConnectionLogin != null)
     {
         m_ConnectionLogin.Dispose();
     }
     m_ConnectionLogin = null;
 }
コード例 #2
0
        public void UnInitEngine()
        {
            m_MessageRouter = null;

            if (m_ConnectionLogin != null)
            {
                m_ConnectionLogin.Dispose();
            }
            m_ConnectionLogin = null;

            if (m_ConnectionGame != null)
            {
                m_ConnectionGame.Dispose();
            }
            m_ConnectionGame = null;

            if (mRecvChatHistorys != null)
            {
                mRecvChatHistorys.Clear();
                mRecvChatHistorys = null;
            }
        }
コード例 #3
0
        public void CloseAllConnections()
        {
            if (m_ConnectionLogin != null)
            {
                m_ConnectionLogin.Dispose();
            }
            m_ConnectionLogin = null;

            if (m_Timer != null)
            {
                m_Timer.Stop();
            }

            m_Timer = null;
        }
コード例 #4
0
        public void CloseAllConnections()
        {
            if (m_ConnectionGame != null)
            {
                if (m_ConnectionGame.State != SFConnection.ConnectionState.DISCONNECTED)
                {
                    if (mGameSvrDisConnectedAction != null)
                    {
                        mGameSvrDisConnectedAction(this, m_Game);
                    }
                }
            }

            if (m_ConnectionLogin != null)
            {
                if (m_ConnectionLogin.State != SFConnection.ConnectionState.DISCONNECTED)
                {
                    if (mLoginDisConnectedAction != null)
                    {
                        mLoginDisConnectedAction(this, m_Login);
                    }
                }
            }

            m_Login = null;
            m_Game  = null;

            if (m_ConnectionLogin != null)
            {
                m_ConnectionLogin.Dispose();
            }

            m_ConnectionLogin = null;

            if (m_ConnectionGame != null)
            {
                m_ConnectionGame.Dispose();
            }
            m_ConnectionGame = null;

            if (m_MatchedInfo != null)
            {
                m_MatchedInfo.Dispose();
            }

            //   PrintStatus("m_MatchedInfo Delete ID = {0}", m_LoginID);
            m_MatchedInfo = null;
        }
コード例 #5
0
        public void CloseAllConnections()
        {
            if (m_ConnectionLogin != null)
            {
                if (m_ConnectionLogin.State != SFConnection.ConnectionState.DISCONNECTED)
                {
                    if (mLoginDisConnectedAction != null)
                    {
                        mLoginDisConnectedAction(this, m_Login);
                    }
                }
            }

            if (m_ConnectionLogin != null)
            {
                m_ConnectionLogin.Dispose();
            }
            m_ConnectionLogin = null;

            m_Login = null;
        }