aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/mass test client/Commands/Stats/RegionInfoCommand.cs
diff options
context:
space:
mode:
authorAdam Frisby2007-06-21 17:08:21 +0000
committerAdam Frisby2007-06-21 17:08:21 +0000
commite93869c7a785a4f375685ffa33c913033ed1c85a (patch)
treeabb5e2c58f8750a1bc05acf58716b6b025da4d15 /tools/mass test client/Commands/Stats/RegionInfoCommand.cs
parentFixed the struct and null compare bug. (diff)
downloadopensim-SC_OLD-e93869c7a785a4f375685ffa33c913033ed1c85a.zip
opensim-SC_OLD-e93869c7a785a4f375685ffa33c913033ed1c85a.tar.gz
opensim-SC_OLD-e93869c7a785a4f375685ffa33c913033ed1c85a.tar.bz2
opensim-SC_OLD-e93869c7a785a4f375685ffa33c913033ed1c85a.tar.xz
* Importing Ming's mass test client
Diffstat (limited to 'tools/mass test client/Commands/Stats/RegionInfoCommand.cs')
-rw-r--r--tools/mass test client/Commands/Stats/RegionInfoCommand.cs45
1 files changed, 45 insertions, 0 deletions
diff --git a/tools/mass test client/Commands/Stats/RegionInfoCommand.cs b/tools/mass test client/Commands/Stats/RegionInfoCommand.cs
new file mode 100644
index 0000000..750175f
--- /dev/null
+++ b/tools/mass test client/Commands/Stats/RegionInfoCommand.cs
@@ -0,0 +1,45 @@
1using System;
2using System.Text;
3using libsecondlife;
4
5namespace libsecondlife.TestClient
6{
7 public class RegionInfoCommand : Command
8 {
9 public RegionInfoCommand(TestClient testClient)
10 {
11 Name = "regioninfo";
12 Description = "Prints out info about all the current region";
13 }
14
15 public override string Execute(string[] args, LLUUID fromAgentID)
16 {
17 StringBuilder output = new StringBuilder();
18 output.AppendLine(Client.Network.CurrentSim.ToString());
19 output.Append("Access: ");
20 output.AppendLine(Client.Network.CurrentSim.Access.ToString());
21 output.Append("Flags: ");
22 output.AppendLine(Client.Network.CurrentSim.Flags.ToString());
23 output.Append("TerrainBase0: ");
24 output.AppendLine(Client.Network.CurrentSim.TerrainBase0.ToStringHyphenated());
25 output.Append("TerrainBase1: ");
26 output.AppendLine(Client.Network.CurrentSim.TerrainBase1.ToStringHyphenated());
27 output.Append("TerrainBase2: ");
28 output.AppendLine(Client.Network.CurrentSim.TerrainBase2.ToStringHyphenated());
29 output.Append("TerrainBase3: ");
30 output.AppendLine(Client.Network.CurrentSim.TerrainBase3.ToStringHyphenated());
31 output.Append("TerrainDetail0: ");
32 output.AppendLine(Client.Network.CurrentSim.TerrainDetail0.ToStringHyphenated());
33 output.Append("TerrainDetail1: ");
34 output.AppendLine(Client.Network.CurrentSim.TerrainDetail1.ToStringHyphenated());
35 output.Append("TerrainDetail2: ");
36 output.AppendLine(Client.Network.CurrentSim.TerrainDetail2.ToStringHyphenated());
37 output.Append("TerrainDetail3: ");
38 output.AppendLine(Client.Network.CurrentSim.TerrainDetail3.ToStringHyphenated());
39 output.Append("Water Height: ");
40 output.AppendLine(Client.Network.CurrentSim.WaterHeight.ToString());
41
42 return output.ToString();
43 }
44 }
45}