diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Tools/pCampBot/Bot.cs | 15 |
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 |