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/pCampBot/BotManager.cs | 10 +++++----- OpenSim/Tools/pCampBot/pCampBot.cs | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) (limited to 'OpenSim/Tools/pCampBot') 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