aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Tools/pCampBot/Bot.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Tools/pCampBot/Bot.cs')
-rw-r--r--OpenSim/Tools/pCampBot/Bot.cs24
1 files changed, 12 insertions, 12 deletions
diff --git a/OpenSim/Tools/pCampBot/Bot.cs b/OpenSim/Tools/pCampBot/Bot.cs
index 4f28733..a142527 100644
--- a/OpenSim/Tools/pCampBot/Bot.cs
+++ b/OpenSim/Tools/pCampBot/Bot.cs
@@ -57,10 +57,10 @@ namespace pCampBot
57 { 57 {
58 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); 58 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
59 59
60 public int PacketDebugLevel 60 public int PacketDebugLevel
61 { 61 {
62 get { return m_packetDebugLevel; } 62 get { return m_packetDebugLevel; }
63 set 63 set
64 { 64 {
65 if (value == m_packetDebugLevel) 65 if (value == m_packetDebugLevel)
66 return; 66 return;
@@ -217,7 +217,7 @@ namespace pCampBot
217 Dictionary<string, IBehaviour> updatedBehaviours = new Dictionary<string, IBehaviour>(Behaviours); 217 Dictionary<string, IBehaviour> updatedBehaviours = new Dictionary<string, IBehaviour>(Behaviours);
218 218
219 if (!updatedBehaviours.ContainsKey(behaviour.AbbreviatedName)) 219 if (!updatedBehaviours.ContainsKey(behaviour.AbbreviatedName))
220 { 220 {
221 behaviour.Initialize(this); 221 behaviour.Initialize(this);
222 updatedBehaviours.Add(behaviour.AbbreviatedName, behaviour); 222 updatedBehaviours.Add(behaviour.AbbreviatedName, behaviour);
223 Behaviours = updatedBehaviours; 223 Behaviours = updatedBehaviours;
@@ -313,7 +313,7 @@ namespace pCampBot
313 foreach (IBehaviour behaviour in Behaviours.Values) 313 foreach (IBehaviour behaviour in Behaviours.Values)
314 { 314 {
315// Thread.Sleep(Random.Next(3000, 10000)); 315// Thread.Sleep(Random.Next(3000, 10000));
316 316
317 // m_log.DebugFormat("[pCAMPBOT]: For {0} performing action {1}", Name, b.GetType()); 317 // m_log.DebugFormat("[pCAMPBOT]: For {0} performing action {1}", Name, b.GetType());
318 behaviour.Action(); 318 behaviour.Action();
319 } 319 }
@@ -329,7 +329,7 @@ namespace pCampBot
329 public void Disconnect() 329 public void Disconnect()
330 { 330 {
331 ConnectionState = ConnectionState.Disconnecting; 331 ConnectionState = ConnectionState.Disconnecting;
332 332
333 foreach (IBehaviour behaviour in Behaviours.Values) 333 foreach (IBehaviour behaviour in Behaviours.Values)
334 behaviour.Close(); 334 behaviour.Close();
335 335
@@ -337,7 +337,7 @@ namespace pCampBot
337 } 337 }
338 338
339 public void Connect() 339 public void Connect()
340 { 340 {
341 Thread connectThread = new Thread(ConnectInternal); 341 Thread connectThread = new Thread(ConnectInternal);
342 connectThread.Name = Name; 342 connectThread.Name = Name;
343 connectThread.IsBackground = true; 343 connectThread.IsBackground = true;
@@ -508,7 +508,7 @@ namespace pCampBot
508 InventoryFolder clothfolder = FindClothingFolder(); 508 InventoryFolder clothfolder = FindClothingFolder();
509 UUID transid = UUID.Random(); 509 UUID transid = UUID.Random();
510 List<InventoryBase> listwearables = new List<InventoryBase>(); 510 List<InventoryBase> listwearables = new List<InventoryBase>();
511 511
512 for (int i = 0; i < clothing.Length; i++) 512 for (int i = 0; i < clothing.Length; i++)
513 { 513 {
514 UUID assetID = UUID.Random(); 514 UUID assetID = UUID.Random();
@@ -707,7 +707,7 @@ namespace pCampBot
707 m_log.Warn(string.Format("Error requesting {0} {1}", texture ? "texture" : "mesh", assetID), e); 707 m_log.Warn(string.Format("Error requesting {0} {1}", texture ? "texture" : "mesh", assetID), e);
708 } 708 }
709 } 709 }
710 710
711 public void Asset_TextureCallback_Texture(TextureRequestState state, AssetTexture assetTexture) 711 public void Asset_TextureCallback_Texture(TextureRequestState state, AssetTexture assetTexture)
712 { 712 {
713 if (state == TextureRequestState.Finished) 713 if (state == TextureRequestState.Finished)
@@ -722,7 +722,7 @@ namespace pCampBot
722 lock (Manager.AssetsReceived) 722 lock (Manager.AssetsReceived)
723 Manager.AssetsReceived[assetMesh.AssetID] = success; 723 Manager.AssetsReceived[assetMesh.AssetID] = success;
724 } 724 }
725 725
726 public void Asset_ReceivedCallback(AssetDownload transfer, Asset asset) 726 public void Asset_ReceivedCallback(AssetDownload transfer, Asset asset)
727 { 727 {
728 lock (Manager.AssetsReceived) 728 lock (Manager.AssetsReceived)
@@ -733,7 +733,7 @@ namespace pCampBot
733// SaveAsset((AssetWearable) asset); 733// SaveAsset((AssetWearable) asset);
734// } 734// }
735 } 735 }
736 736
737 private void PacketReceivedDebugHandler(object o, PacketReceivedEventArgs args) 737 private void PacketReceivedDebugHandler(object o, PacketReceivedEventArgs args)
738 { 738 {
739 Packet p = args.Packet; 739 Packet p = args.Packet;
@@ -741,7 +741,7 @@ namespace pCampBot
741 Simulator s = args.Simulator; 741 Simulator s = args.Simulator;
742 742
743 m_log.DebugFormat( 743 m_log.DebugFormat(
744 "[BOT]: Bot {0} received from {1} packet {2} #{3}, rel {4}, res {5}", 744 "[BOT]: Bot {0} received from {1} packet {2} #{3}, rel {4}, res {5}",
745 Name, s.Name, p.Type, h.Sequence, h.Reliable, h.Resent); 745 Name, s.Name, p.Type, h.Sequence, h.Reliable, h.Resent);
746 } 746 }
747 } 747 }