libsecondlife:
* 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
This commit is contained in:
@@ -5,17 +5,47 @@ using System.Text;
|
||||
|
||||
namespace libsecondlife.TestClient
|
||||
{
|
||||
public class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
if(args.Length < 3 || args.Length == 4)
|
||||
{
|
||||
Console.WriteLine("Usage: TestClient.ext firstname lastname password [master name]");
|
||||
}
|
||||
TestClient testTool = new TestClient(args[0], args[1], args[2]);
|
||||
if(args.Length > 4) testTool.Master = args[3] + " " + args[4];
|
||||
testTool.Run();
|
||||
}
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user