From 225cf0d0102d05721bd01120928b9d1d85c811a7 Mon Sep 17 00:00:00 2001
From: Justin Clark-Casey (justincc)
Date: Wed, 14 Aug 2013 19:53:10 +0100
Subject: Add pCampbot RequestObjectTextures ini setting to control whether
textures are requested for received objects.
---
OpenSim/Tools/pCampBot/BotManager.cs | 7 +++++++
OpenSim/Tools/pCampBot/pCampBot.cs | 2 ++
2 files changed, 9 insertions(+)
(limited to 'OpenSim/Tools/pCampBot')
diff --git a/OpenSim/Tools/pCampBot/BotManager.cs b/OpenSim/Tools/pCampBot/BotManager.cs
index 0fdfa0e..5988584 100644
--- a/OpenSim/Tools/pCampBot/BotManager.cs
+++ b/OpenSim/Tools/pCampBot/BotManager.cs
@@ -68,6 +68,11 @@ namespace pCampBot
public bool InitBotSendAgentUpdates { get; set; }
///
+ /// Controls whether bots request textures for the object information they receive
+ ///
+ public bool InitBotRequestObjectTextures { get; set; }
+
+ ///
/// Created bots, whether active or inactive.
///
protected List m_lBot;
@@ -93,6 +98,7 @@ namespace pCampBot
public BotManager()
{
InitBotSendAgentUpdates = true;
+ InitBotRequestObjectTextures = true;
LoginDelay = DefaultLoginDelay;
@@ -176,6 +182,7 @@ namespace pCampBot
MainConsole.Instance.OutputFormat("[BOT MANAGER]: Delay between logins is {0}ms", LoginDelay);
MainConsole.Instance.OutputFormat("[BOT MANAGER]: BotsSendAgentUpdates is {0}", InitBotSendAgentUpdates);
+ MainConsole.Instance.OutputFormat("[BOT MANAGER]: InitBotRequestObjectTextures is {0}", InitBotRequestObjectTextures);
for (int i = 0; i < botcount; i++)
{
diff --git a/OpenSim/Tools/pCampBot/pCampBot.cs b/OpenSim/Tools/pCampBot/pCampBot.cs
index c8b6304..b02f917 100644
--- a/OpenSim/Tools/pCampBot/pCampBot.cs
+++ b/OpenSim/Tools/pCampBot/pCampBot.cs
@@ -88,6 +88,8 @@ namespace pCampBot
{
bm.InitBotSendAgentUpdates
= botConfig.GetBoolean("SendAgentUpdates", bm.InitBotSendAgentUpdates);
+ bm.InitBotRequestObjectTextures
+ = botConfig.GetBoolean("RequestObjectTextures", bm.InitBotRequestObjectTextures);
}
}
--
cgit v1.1