2007-04-28 20:54:02 +00:00
|
|
|
using System;
|
|
|
|
|
using System.Text;
|
2008-07-21 21:12:59 +00:00
|
|
|
using OpenMetaverse;
|
2007-04-28 20:54:02 +00:00
|
|
|
|
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;
|
|
|
|
|
Helpers.LongToUInts(Client.Network.CurrentSim.Handle, out x, out y);
|
|
|
|
|
output.AppendLine(String.Format("Handle: {0} (X: {1} Y: {2})", Client.Network.CurrentSim.Handle, x, 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: ");
|
|
|
|
|
output.AppendLine(Client.Network.CurrentSim.WaterHeight.ToString());
|
|
|
|
|
|
|
|
|
|
return output.ToString();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|