aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Tools/pCampBot/Bot.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2013-08-19 19:38:20 +0100
committerJustin Clark-Casey (justincc)2013-08-19 19:38:20 +0100
commita90a5f52dd5f053a83a09fdd70ca08148ef641ce (patch)
treee3988b8959bce2c59ff33d46c730d755adeec1ed /OpenSim/Tools/pCampBot/Bot.cs
parentRemove mono compiler warnings from UserProfilesModule (diff)
downloadopensim-SC-a90a5f52dd5f053a83a09fdd70ca08148ef641ce.zip
opensim-SC-a90a5f52dd5f053a83a09fdd70ca08148ef641ce.tar.gz
opensim-SC-a90a5f52dd5f053a83a09fdd70ca08148ef641ce.tar.bz2
opensim-SC-a90a5f52dd5f053a83a09fdd70ca08148ef641ce.tar.xz
Show number of connections each bot has established in "show bots" command.
Diffstat (limited to 'OpenSim/Tools/pCampBot/Bot.cs')
-rw-r--r--OpenSim/Tools/pCampBot/Bot.cs15
1 files changed, 14 insertions, 1 deletions
diff --git a/OpenSim/Tools/pCampBot/Bot.cs b/OpenSim/Tools/pCampBot/Bot.cs
index 32bf32b..be7a5a1 100644
--- a/OpenSim/Tools/pCampBot/Bot.cs
+++ b/OpenSim/Tools/pCampBot/Bot.cs
@@ -97,6 +97,19 @@ namespace pCampBot
97 /// </summary> 97 /// </summary>
98 public ConnectionState ConnectionState { get; private set; } 98 public ConnectionState ConnectionState { get; private set; }
99 99
100 /// <summary>
101 /// The number of connections that this bot has to different simulators.
102 /// </summary>
103 /// <value>Includes both root and child connections.</value>
104 public int ConnectionsCount
105 {
106 get
107 {
108 lock (Client.Network.Simulators)
109 return Client.Network.Simulators.Count;
110 }
111 }
112
100 public string FirstName { get; private set; } 113 public string FirstName { get; private set; }
101 public string LastName { get; private set; } 114 public string LastName { get; private set; }
102 public string Name { get; private set; } 115 public string Name { get; private set; }
@@ -144,7 +157,7 @@ namespace pCampBot
144 ConnectionState = ConnectionState.Disconnected; 157 ConnectionState = ConnectionState.Disconnected;
145 158
146 behaviours.ForEach(b => b.Initialize(this)); 159 behaviours.ForEach(b => b.Initialize(this));
147 160
148 Client = new GridClient(); 161 Client = new GridClient();
149 162
150 Random = new Random(Environment.TickCount);// We do stuff randomly here 163 Random = new Random(Environment.TickCount);// We do stuff randomly here