Indiefreaks.Xna.Sessions.Live.LiveSession.LiveSession C# (CSharp) Method

LiveSession() private method

Creates a new instance
private LiveSession ( Microsoft.Xna.Framework.Net.NetworkSession networkSession ) : System
networkSession Microsoft.Xna.Framework.Net.NetworkSession the newly created or joined NetworkSession instance
return System
        internal LiveSession(NetworkSession networkSession)
        {
            _networkSession = networkSession;
            _networkSession.GamerLeft += OnLivePlayerLeft;
            _networkSession.GamerJoined += OnLivePlayerJoined;
            _networkSession.GameStarted += OnLiveSessionStarted;
            _networkSession.GameEnded += OnLiveSessionEnded;
        }