2006-11-22 00:09:31 +00:00
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
2006-11-22 08:20:02 +00:00
|
|
|
|
2006-11-24 22:27:15 +00:00
|
|
|
namespace libsecondlife.TestClient
|
2006-11-22 00:09:31 +00:00
|
|
|
{
|
2006-11-28 07:48:43 +00:00
|
|
|
public class Program
|
|
|
|
|
{
|
|
|
|
|
static void Main(string[] args)
|
|
|
|
|
{
|
|
|
|
|
if (args.Length < 1 || args.Length > 5)
|
|
|
|
|
{
|
|
|
|
|
Console.WriteLine("Usage: " + Environment.NewLine +
|
|
|
|
|
"TestClient.exe firstname lastname password [master name]" + Environment.NewLine +
|
|
|
|
|
"TestClient.exe filename [master name]");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
TestClient tester;
|
|
|
|
|
List<LoginDetails> accounts = new List<LoginDetails>();
|
|
|
|
|
LoginDetails account;
|
|
|
|
|
|
|
|
|
|
if (args.Length <= 2)
|
|
|
|
|
{
|
|
|
|
|
// Loading names from a file
|
|
|
|
|
// FIXME:
|
|
|
|
|
|
|
|
|
|
Console.WriteLine("FIXME!");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
// Taking a single login off the command-line
|
|
|
|
|
account = new LoginDetails();
|
|
|
|
|
account.FirstName = args[0];
|
|
|
|
|
account.LastName = args[1];
|
|
|
|
|
account.Password = args[2];
|
|
|
|
|
|
|
|
|
|
if (args.Length == 5)
|
|
|
|
|
{
|
|
|
|
|
account.Master = args[3] + " " + args[4];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
accounts.Add(account);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
tester = new TestClient(accounts);
|
|
|
|
|
tester.Run();
|
2006-11-22 00:09:31 +00:00
|
|
|
}
|
2006-11-28 07:48:43 +00:00
|
|
|
}
|
2006-11-22 00:09:31 +00:00
|
|
|
}
|