TestClient: Cleaned up Command->Client references.

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@796 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
lonecoder
2007-01-04 05:41:23 +00:00
parent 9fba81b64d
commit 241597c00c
32 changed files with 46 additions and 179 deletions

View File

@@ -9,13 +9,8 @@ namespace libsecondlife.TestClient
{
public class LoadCommand: Command
{
SecondLife Client;
public LoadCommand(TestClient testClient)
{
TestClient = testClient;
Client = (SecondLife)TestClient;
Name = "load";
Description = "Loads commands from a dll. (Usage: load AssemblyNameWithoutExtension)";
}
@@ -26,7 +21,7 @@ namespace libsecondlife.TestClient
return "Usage: load AssemblyNameWithoutExtension";
string filename = AppDomain.CurrentDomain.BaseDirectory + args[0] + ".dll";
TestClient.RegisterAllCommands(Assembly.LoadFile(filename));
Client.RegisterAllCommands(Assembly.LoadFile(filename));
return "Assembly " + filename + " loaded.";
}
}