* Optimised using statements and namespace references across entire project (this took a while to run).

This commit is contained in:
Adam Frisby
2008-04-21 07:09:17 +00:00
parent 05e24c8f58
commit fef3b36894
306 changed files with 1011 additions and 1306 deletions

View File

@@ -27,6 +27,7 @@
using System;
using System.IO;
using log4net.Config;
using Nini.Config;
using OpenSim.Framework;
using OpenSim.Framework.Console;
@@ -58,7 +59,7 @@ namespace OpenSim.Tools.Export
public static void Main(string[] args)
{
log4net.Config.XmlConfigurator.Configure();
XmlConfigurator.Configure();
OpenSimExport export = new OpenSimExport(InitConfig(args));
RegionInfo reg = new RegionInfo("Sara Jane", "Regions/1000-1000.xml",false);

View File

@@ -27,12 +27,11 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using libsecondlife;
using libsecondlife.Packets;
using Nini.Config;
using System.Reflection;
using System.Threading;
using libsecondlife;
using log4net;
using Nini.Config;
using OpenSim.Framework;
using OpenSim.Framework.Console;
@@ -43,13 +42,13 @@ namespace pCampBot
/// </summary>
public class BotManager : conscmd_callback
{
private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
protected ConsoleBase m_console;
protected List<PhysicsBot> m_lBot;
protected Thread[] m_td;
protected bool m_verbose = true;
protected Random somthing = new Random(System.Environment.TickCount);
protected Random somthing = new Random(Environment.TickCount);
protected int numbots = 0;
protected IConfig Previous_config;
@@ -117,7 +116,7 @@ namespace pCampBot
m_td[pos].IsBackground = true;
m_td[pos].Start();
m_lBot.Add(pb);
OpenSim.Framework.ThreadTracker.Add(m_td[pos]);
ThreadTracker.Add(m_td[pos]);
}
/// <summary>

View File

@@ -26,16 +26,14 @@
*/
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using libsecondlife;
using libsecondlife.Packets;
using Nini.Config;
using System.Threading;
using System.Timers;
using libsecondlife;
using Nini.Config;
using OpenSim.Framework;
using OpenSim.Framework.Console;
using Timer = System.Timers.Timer;
using Timer=System.Timers.Timer;
namespace pCampBot
{
@@ -54,7 +52,7 @@ namespace pCampBot
protected Timer m_action; // Action Timer
protected Random somthing = new Random(System.Environment.TickCount);// We do stuff randomly here
protected Random somthing = new Random(Environment.TickCount);// We do stuff randomly here
//New instance of a SecondLife client
public SecondLife client = new SecondLife();
@@ -74,7 +72,7 @@ namespace pCampBot
//We do our actions here. This is where one would
//add additional steps and/or things the bot should do
void m_action_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
void m_action_Elapsed(object sender, ElapsedEventArgs e)
{
//client.Throttle.Task = 500000f;
//client.Throttle.Set();
@@ -145,7 +143,7 @@ namespace pCampBot
if (OnConnected != null)
{
m_action = new Timer(somthing.Next(1000, 10000));
m_action.Elapsed += new System.Timers.ElapsedEventHandler(m_action_Elapsed);
m_action.Elapsed += new ElapsedEventHandler(m_action_Elapsed);
m_action.Start();
OnConnected(this, EventType.CONNECTED);
client.Self.Jump();

View File

@@ -26,12 +26,7 @@
*/
using System;
using System.Collections.Generic;
using System.Text;
using libsecondlife;
using libsecondlife.Packets;
using Nini.Config;
using System.Threading;
using OpenSim.Framework.Console;
namespace pCampBot
@@ -86,7 +81,7 @@ namespace pCampBot
private static void Help()
{
System.Console.WriteLine(
Console.WriteLine(
"usage: pCampBot <-loginuri loginuri> [OPTIONS]\n" +
"Spawns a set of bots to test an OpenSim region\n\n" +
" -l, -loginuri loginuri for sim to log into (required)\n" +