Indiefreaks.Xna.Sessions.Lidgren.LidgrenSessionManager.CreateSinglePlayerSession C# (CSharp) Method

CreateSinglePlayerSession() public method

Creates a Single Player Session
No network resources will be used
public CreateSinglePlayerSession ( ) : void
return void
        public override void CreateSinglePlayerSession()
        {
            if (CurrentSession != null)
                throw new CoreException("Session is already running");

            IPAddress ipAddress;
            var host = NetUtility.GetMyAddress(out ipAddress);

            _networkSessionLocker = CreatingSession;
            LidgrenSession.BeginCreate(host.ToString(), SessionType.SinglePlayer, 1, 1, 0, new SessionProperties(), OnLidgrenSessionCreated, _networkSessionLocker);
        }