* Publically exposed the Simulator reference to SecondLife * SecondLife.Debug = false; actually works now * All incoming packets are added to the simulator inbox now, and the inbox size has been cut in half to 100 TestClient: * Completely revamped to support multiple clients * Added login/logout Commands * Added the all prefix for IM commands to send the command to all logged in bots git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@645 52acb1d6-8a22-11de-b505-999d5b087335
52 lines
1.4 KiB
C#
52 lines
1.4 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
|
|
namespace libsecondlife.TestClient
|
|
{
|
|
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();
|
|
}
|
|
}
|
|
}
|