aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Tools/pCampBot/Bot.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2013-08-13 23:54:50 +0100
committerJustin Clark-Casey (justincc)2013-08-13 23:54:50 +0100
commit5933f9448d839b9f6db391dedc493bb5cc951d66 (patch)
tree158049869953786cdf7741e52444380dbce6da89 /OpenSim/Tools/pCampBot/Bot.cs
parentminor: Eliminate one of the duplicate 'have's in the HG message telling the u... (diff)
downloadopensim-SC-5933f9448d839b9f6db391dedc493bb5cc951d66.zip
opensim-SC-5933f9448d839b9f6db391dedc493bb5cc951d66.tar.gz
opensim-SC-5933f9448d839b9f6db391dedc493bb5cc951d66.tar.bz2
opensim-SC-5933f9448d839b9f6db391dedc493bb5cc951d66.tar.xz
Add a SendAgentUpdates setting to a new pCampbot.ini.example file which can control whether bots send agent updates
pCampbot.ini.example is used by copying to pCampbot.ini, like other ini files
Diffstat (limited to 'OpenSim/Tools/pCampBot/Bot.cs')
-rw-r--r--OpenSim/Tools/pCampBot/Bot.cs20
1 files changed, 1 insertions, 19 deletions
diff --git a/OpenSim/Tools/pCampBot/Bot.cs b/OpenSim/Tools/pCampBot/Bot.cs
index 9821180..c56d29b 100644
--- a/OpenSim/Tools/pCampBot/Bot.cs
+++ b/OpenSim/Tools/pCampBot/Bot.cs
@@ -64,11 +64,6 @@ namespace pCampBot
64 public BotManager Manager { get; private set; } 64 public BotManager Manager { get; private set; }
65 65
66 /// <summary> 66 /// <summary>
67 /// Bot config, passed from BotManager.
68 /// </summary>
69 private IConfig startupConfig;
70
71 /// <summary>
72 /// Behaviours implemented by this bot. 67 /// Behaviours implemented by this bot.
73 /// </summary> 68 /// </summary>
74 /// <remarks> 69 /// <remarks>
@@ -153,9 +148,6 @@ namespace pCampBot
153 LoginUri = loginUri; 148 LoginUri = loginUri;
154 149
155 Manager = bm; 150 Manager = bm;
156 startupConfig = bm.Config;
157 readconfig();
158
159 Behaviours = behaviours; 151 Behaviours = behaviours;
160 } 152 }
161 153
@@ -177,14 +169,6 @@ namespace pCampBot
177 } 169 }
178 170
179 /// <summary> 171 /// <summary>
180 /// Read the Nini config and initialize
181 /// </summary>
182 public void readconfig()
183 {
184 wear = startupConfig.GetString("wear", "no");
185 }
186
187 /// <summary>
188 /// Tells LibSecondLife to logout and disconnect. Raises the disconnect events once it finishes. 172 /// Tells LibSecondLife to logout and disconnect. Raises the disconnect events once it finishes.
189 /// </summary> 173 /// </summary>
190 public void shutdown() 174 public void shutdown()
@@ -207,6 +191,7 @@ namespace pCampBot
207 Client.Settings.AVATAR_TRACKING = false; 191 Client.Settings.AVATAR_TRACKING = false;
208 Client.Settings.OBJECT_TRACKING = false; 192 Client.Settings.OBJECT_TRACKING = false;
209 Client.Settings.SEND_AGENT_THROTTLE = true; 193 Client.Settings.SEND_AGENT_THROTTLE = true;
194 Client.Settings.SEND_AGENT_UPDATES = false;
210 Client.Settings.SEND_PINGS = true; 195 Client.Settings.SEND_PINGS = true;
211 Client.Settings.STORE_LAND_PATCHES = false; 196 Client.Settings.STORE_LAND_PATCHES = false;
212 Client.Settings.USE_ASSET_CACHE = false; 197 Client.Settings.USE_ASSET_CACHE = false;
@@ -481,9 +466,6 @@ namespace pCampBot
481 466
482 public void Objects_NewPrim(object sender, PrimEventArgs args) 467 public void Objects_NewPrim(object sender, PrimEventArgs args)
483 { 468 {
484// if (Name.EndsWith("4"))
485// throw new Exception("Aaargh");
486
487 Primitive prim = args.Prim; 469 Primitive prim = args.Prim;
488 470
489 if (prim != null) 471 if (prim != null)