Dwarrowdelf.DirectConnection.Connect C# (CSharp) Method

Connect() public static method

public static Connect ( IGame game ) : DirectConnection
game IGame
return DirectConnection
		public static DirectConnection Connect(IGame game)
		{
			var connection = new DirectConnection();

			game.Connect(connection);

			if (connection.m_remoteConnection == null)
				throw new Exception();

			return connection;
		}
	}