Files
libremetaverse/Programs/examples/TestClient/Commands/Land/SyntaxIdCommand.cs

27 lines
780 B
C#
Raw Normal View History

2025-07-12 15:07:37 -05:00
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();
}
}
}