2007-04-28 20:54:02 +00:00
|
|
|
using System;
|
2022-02-25 19:38:11 -06:00
|
|
|
using System.Globalization;
|
2007-04-28 20:54:02 +00:00
|
|
|
using System.Text;
|
|
|
|
|
|
2008-07-21 21:12:59 +00:00
|
|
|
namespace OpenMetaverse.TestClient
|
2007-04-28 20:54:02 +00:00
|
|
|
{
|
|
|
|
|
public class RegionInfoCommand : Command
|
|
|
|
|
{
|
|
|
|
|
public RegionInfoCommand(TestClient testClient)
|
|
|
|
|
{
|
|
|
|
|
Name = "regioninfo";
|
|
|
|
|
Description = "Prints out info about all the current region";
|
2008-07-25 08:55:36 +00:00
|
|
|
Category = CommandCategory.Simulator;
|
2007-04-28 20:54:02 +00:00
|
|
|
}
|
|
|
|
|
|
2008-07-25 05:15:05 +00:00
|
|
|
public override string Execute(string[] args, UUID fromAgentID)
|
2007-04-28 20:54:02 +00:00
|
|
|
{
|
|
|
|
|
StringBuilder output = new StringBuilder();
|
|
|
|
|
output.AppendLine(Client.Network.CurrentSim.ToString());
|
2007-09-01 07:52:55 +00:00
|
|
|
output.Append("UUID: ");
|
2007-11-30 13:15:31 +00:00
|
|
|
output.AppendLine(Client.Network.CurrentSim.ID.ToString());
|
2007-09-01 07:52:55 +00:00
|
|
|
uint x, y;
|
2008-10-06 22:34:38 +00:00
|
|
|
Utils.LongToUInts(Client.Network.CurrentSim.Handle, out x, out y);
|
2022-02-25 19:38:11 -06:00
|
|
|
output.AppendLine($"Handle: {Client.Network.CurrentSim.Handle} (X: {x} Y: {y})");
|
2007-04-28 20:54:02 +00:00
|
|
|
output.Append("Access: ");
|
|
|
|
|
output.AppendLine(Client.Network.CurrentSim.Access.ToString());
|
|
|
|
|
output.Append("Flags: ");
|
|
|
|
|
output.AppendLine(Client.Network.CurrentSim.Flags.ToString());
|
|
|
|
|
output.Append("TerrainBase0: ");
|
2007-11-30 13:15:31 +00:00
|
|
|
output.AppendLine(Client.Network.CurrentSim.TerrainBase0.ToString());
|
2007-04-28 20:54:02 +00:00
|
|
|
output.Append("TerrainBase1: ");
|
2007-11-30 13:15:31 +00:00
|
|
|
output.AppendLine(Client.Network.CurrentSim.TerrainBase1.ToString());
|
2007-04-28 20:54:02 +00:00
|
|
|
output.Append("TerrainBase2: ");
|
2007-11-30 13:15:31 +00:00
|
|
|
output.AppendLine(Client.Network.CurrentSim.TerrainBase2.ToString());
|
2007-04-28 20:54:02 +00:00
|
|
|
output.Append("TerrainBase3: ");
|
2007-11-30 13:15:31 +00:00
|
|
|
output.AppendLine(Client.Network.CurrentSim.TerrainBase3.ToString());
|
2007-04-28 20:54:02 +00:00
|
|
|
output.Append("TerrainDetail0: ");
|
2007-11-30 13:15:31 +00:00
|
|
|
output.AppendLine(Client.Network.CurrentSim.TerrainDetail0.ToString());
|
2007-04-28 20:54:02 +00:00
|
|
|
output.Append("TerrainDetail1: ");
|
2007-11-30 13:15:31 +00:00
|
|
|
output.AppendLine(Client.Network.CurrentSim.TerrainDetail1.ToString());
|
2007-04-28 20:54:02 +00:00
|
|
|
output.Append("TerrainDetail2: ");
|
2007-11-30 13:15:31 +00:00
|
|
|
output.AppendLine(Client.Network.CurrentSim.TerrainDetail2.ToString());
|
2007-04-28 20:54:02 +00:00
|
|
|
output.Append("TerrainDetail3: ");
|
2007-11-30 13:15:31 +00:00
|
|
|
output.AppendLine(Client.Network.CurrentSim.TerrainDetail3.ToString());
|
2007-04-28 20:54:02 +00:00
|
|
|
output.Append("Water Height: ");
|
2022-02-25 19:38:11 -06:00
|
|
|
output.AppendLine(Client.Network.CurrentSim.WaterHeight.ToString(CultureInfo.InvariantCulture));
|
2009-05-10 09:13:03 +00:00
|
|
|
output.Append("Datacenter:");
|
|
|
|
|
output.AppendLine(Client.Network.CurrentSim.ColoLocation);
|
|
|
|
|
output.Append("CPU Ratio:");
|
|
|
|
|
output.AppendLine(Client.Network.CurrentSim.CPURatio.ToString());
|
|
|
|
|
output.Append("CPU Class:");
|
|
|
|
|
output.AppendLine(Client.Network.CurrentSim.CPUClass.ToString());
|
|
|
|
|
output.Append("Region SKU/Type:");
|
|
|
|
|
output.AppendLine(Client.Network.CurrentSim.ProductSku + " " + Client.Network.CurrentSim.ProductName);
|
2007-04-28 20:54:02 +00:00
|
|
|
|
|
|
|
|
return output.ToString();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|