CloseSession() static private method

static private CloseSession ( ) : void
return void
Example #1
0
        private void RetrieveSessionStateChangedFromServer()
        {
            var newStatus = (SessionState)_incomingMessage.ReadByte();

            _clientSessionState = newStatus;

            switch (_clientSessionState)
            {
            case SessionState.Lobby:
            {
                break;
            }

            case SessionState.Starting:
            {
                OnStarting();
                break;
            }

            case SessionState.Playing:
            {
                OnStarted();
                break;
            }

            case SessionState.Ended:
            {
                OnEnded();
                break;
            }

            case SessionState.Closed:
            {
                LidgrenSessionManager.CloseSession();

                break;
            }
            }
        }