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

@@ -8,13 +8,8 @@ namespace libsecondlife.TestClient
{
public class HelpCommand: Command
{
SecondLife Client;
public HelpCommand(TestClient testClient)
{
TestClient = testClient;
Client = (SecondLife)TestClient;
Name = "help";
Description = "Lists available commands.";
}
@@ -23,7 +18,7 @@ namespace libsecondlife.TestClient
{
StringBuilder result = new StringBuilder();
result.AppendFormat("\n\nHELP\nClient accept teleport lures from master and group members.\n");
foreach (Command c in TestClient.Commands.Values)
foreach (Command c in Client.Commands.Values)
{
result.AppendFormat("{0} - {1}\n", c.Name, c.Description);
}