From 6ef9d4da901a346c232458317cca6268da888e2e Mon Sep 17 00:00:00 2001 From: Jeff Ames Date: Mon, 18 Aug 2008 00:39:10 +0000 Subject: Formatting cleanup. --- OpenSim/Tools/LaunchSLClient/LaunchSLClient/Form1.cs | 2 +- OpenSim/Tools/OpenSim.GUI/InputTextBoxControl.cs | 2 +- OpenSim/Tools/pCampBot/BotManager.cs | 10 +++++----- OpenSim/Tools/pCampBot/pCampBot.cs | 10 +++++----- 4 files changed, 12 insertions(+), 12 deletions(-) (limited to 'OpenSim/Tools') diff --git a/OpenSim/Tools/LaunchSLClient/LaunchSLClient/Form1.cs b/OpenSim/Tools/LaunchSLClient/LaunchSLClient/Form1.cs index dbc58ff..25044db 100644 --- a/OpenSim/Tools/LaunchSLClient/LaunchSLClient/Form1.cs +++ b/OpenSim/Tools/LaunchSLClient/LaunchSLClient/Form1.cs @@ -123,7 +123,7 @@ namespace LaunchSLClient string sandboxHostName = ""; string sandboxPort = ""; string text; - + Regex myRegex = new Regex(".*internal_ip_port=\\\"(?.*?)\\\".*external_host_name=\\\"(?.*?)\\\".*"); FileInfo defaultFile = new FileInfo("Regions/default.xml"); diff --git a/OpenSim/Tools/OpenSim.GUI/InputTextBoxControl.cs b/OpenSim/Tools/OpenSim.GUI/InputTextBoxControl.cs index a43795a..d6a3d04 100644 --- a/OpenSim/Tools/OpenSim.GUI/InputTextBoxControl.cs +++ b/OpenSim/Tools/OpenSim.GUI/InputTextBoxControl.cs @@ -38,7 +38,7 @@ namespace OpenSim.GUI { this.KeyDown += new System.Windows.Forms.KeyEventHandler(TextInputControl_KeyDown); } - + private List CommandHistory = new List(); private bool InHistory = false; private int HistoryPosition = -1; diff --git a/OpenSim/Tools/pCampBot/BotManager.cs b/OpenSim/Tools/pCampBot/BotManager.cs index 302dc08..4bdc494 100644 --- a/OpenSim/Tools/pCampBot/BotManager.cs +++ b/OpenSim/Tools/pCampBot/BotManager.cs @@ -51,7 +51,7 @@ namespace pCampBot protected Random somthing = new Random(Environment.TickCount); protected int numbots = 0; protected IConfig Previous_config; - + /// /// Constructor Creates MainConsole.Instance to take commands and provide the place to write data /// @@ -96,7 +96,7 @@ namespace pCampBot startupBot(i, Previous_config); } } - + /// /// This starts up the bot and stores the thread for the bot in the thread array /// @@ -127,7 +127,7 @@ namespace pCampBot { string returnstring = ""; string chars = "abcdefghijklmnopqrstuvwxyz0123456789"; - + for (int i = 0; i < 7; i++) { returnstring += chars.Substring(somthing.Next(chars.Length),1); @@ -177,7 +177,7 @@ namespace pCampBot { return new ConsoleBase("Region", this); } - + /// /// Command runnint tool.. Currently use it to add bots, shutdown and (dangerous)Forcequit /// @@ -198,7 +198,7 @@ namespace pCampBot case "addbots": int newbots; Helpers.TryParse(cmdparams[0], out newbots); - + if (newbots > 0) addbots(newbots); break; diff --git a/OpenSim/Tools/pCampBot/pCampBot.cs b/OpenSim/Tools/pCampBot/pCampBot.cs index 81ec2b2..9cde451 100644 --- a/OpenSim/Tools/pCampBot/pCampBot.cs +++ b/OpenSim/Tools/pCampBot/pCampBot.cs @@ -54,9 +54,9 @@ namespace pCampBot else { int botcount = config.GetInt("botcount", 1); - + BotManager bm = new BotManager(); - + //startup specified number of bots. 1 is the default bm.dobotStartup(botcount, config); while (true) @@ -70,18 +70,18 @@ namespace pCampBot { //Set up our nifty config.. thanks to nini ArgvConfigSource cs = new ArgvConfigSource(args); - + cs.AddSwitch("Startup", "botcount","n"); cs.AddSwitch("Startup", "loginuri","l"); cs.AddSwitch("Startup", "firstname"); cs.AddSwitch("Startup", "lastname"); cs.AddSwitch("Startup", "password"); cs.AddSwitch("Startup", "help","h"); - + IConfig ol = cs.Configs["Startup"]; return ol; } - + private static void Help() { Console.WriteLine( -- cgit v1.1