TestClient cleanup

This commit is contained in:
Cinder
2022-02-25 19:38:11 -06:00
parent 3fe7b935e7
commit 781a63c307
84 changed files with 385 additions and 408 deletions

View File

@@ -26,21 +26,17 @@ namespace OpenMetaverse.TestClient
CommandCategory cc;
foreach (Command c in Client.Commands.Values)
{
if (c.Category.Equals(null))
cc = CommandCategory.Unknown;
else
cc = c.Category;
{
cc = c.Category.Equals(null) ? CommandCategory.Unknown : c.Category;
if (CommandTree.ContainsKey(cc))
CommandTree[cc].Add(c);
else
{
List<Command> l = new List<Command>();
l.Add(c);
List<Command> l = new List<Command> { c };
CommandTree.Add(cc, l);
}
}
}
foreach (KeyValuePair<CommandCategory, List<Command>> kvp in CommandTree)
{