27 lines
780 B
C#
27 lines
780 B
C#
using System.Text;
|
|
|
|
namespace OpenMetaverse.TestClient
|
|
{
|
|
public class SyntaxIdCommand : Command
|
|
{
|
|
public SyntaxIdCommand(TestClient testClient)
|
|
{
|
|
Name = "syntaxid";
|
|
Description = "Downloads lsl syntax file for current simulator";
|
|
Category = CommandCategory.Simulator;
|
|
}
|
|
|
|
public override string Execute(string[] args, UUID fromAgentID)
|
|
{
|
|
var syntax = new LibreMetaverse.LslSyntaxId(Client);
|
|
|
|
var output = new StringBuilder("LSL Tokens:");
|
|
output.AppendLine();
|
|
foreach (var token in syntax.Keywords.Keys)
|
|
{
|
|
output.AppendLine(token);
|
|
}
|
|
return output.ToString();
|
|
}
|
|
}
|
|
} |