예제 #1
0
    public void Close()
    {
        m_bIsRunning = false;

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

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

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

        if (m_aThreadMain != null)
        {
            m_aThreadMain.Interrupt();
            m_aThreadMain = null;
        }

        DelAllSession();
    }
예제 #2
0
 public void StopGame()
 {
     if (m_aGame != null)
     {
         m_aGame.Dispose();
         m_aGame = null;
     }
 }
예제 #3
0
 public FSPGame StartGame()
 {
     if (m_aGame != null)
     {
         m_aGame.Dispose();
     }
     m_aGame = new FSPGame();
     m_aGame.Create(m_aParam);
     return(m_aGame);
 }