2025-07-12 15:07:37 -05:00
|
|
|
using System.Text;
|
2025-07-13 09:35:45 -05:00
|
|
|
using LibreMetaverse;
|
2025-07-12 15:07:37 -05:00
|
|
|
|
|
|
|
|
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)
|
|
|
|
|
{
|
2025-07-13 09:35:45 -05:00
|
|
|
var syntax = new LibreMetaverse.LslSyntax(Client);
|
2025-07-12 15:07:37 -05:00
|
|
|
|
|
|
|
|
var output = new StringBuilder("LSL Tokens:");
|
|
|
|
|
output.AppendLine();
|
2025-07-13 09:35:45 -05:00
|
|
|
foreach (var token in LslSyntax.Keywords.Keys)
|
2025-07-12 15:07:37 -05:00
|
|
|
{
|
|
|
|
|
output.AppendLine(token);
|
|
|
|
|
}
|
|
|
|
|
return output.ToString();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|