diff options
Diffstat (limited to '')
-rw-r--r-- | tools/mass test client/Commands/Stats/RegionInfoCommand.cs | 45 |
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 @@ | |||
1 | using System; | ||
2 | using System.Text; | ||
3 | using libsecondlife; | ||
4 | |||
5 | namespace 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 | } | ||