* 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:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user