* Replacing hacky ClientManagerRef in TestClient with a proper singleton implementation of ClientManager

* Use BeginLogin in TestClient to try out asynchronous logins (this is experimental and may very likely break things, hooray for trunk)

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2715 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
John Hurliman
2009-05-08 18:57:45 +00:00
parent 1ac746c3f2
commit 9801078b08
5 changed files with 109 additions and 101 deletions

View File

@@ -23,7 +23,6 @@ namespace OpenMetaverse.TestClient
{
Arguments arguments = new Arguments(args);
ClientManager manager;
List<LoginDetails> accounts = new List<LoginDetails>();
LoginDetails account;
bool groupCommands = false;
@@ -149,13 +148,13 @@ namespace OpenMetaverse.TestClient
}
// Login the accounts and run the input loop
manager = new ClientManager(accounts, getTextures);
ClientManager.Instance.Start(accounts, getTextures);
if (!String.IsNullOrEmpty(scriptFile))
manager.DoCommandAll("script " + scriptFile, UUID.Zero);
ClientManager.Instance.DoCommandAll("script " + scriptFile, UUID.Zero);
// Then Run the ClientManager normally
manager.Run();
ClientManager.Instance.Run();
}
}
}