From 54c6a920baa0ef02a9ea09e08cc1effcef3b0a3a Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Sat, 7 Feb 2009 12:25:39 +0000 Subject: Replace the console for all OpenSim apps with a new console featuring command line editing, context sensitive help (press ? at any time), command line history, a new plugin command system and new appender features thet let you type while the console is scrolling. Seamlessly integrates the ICommander interfaces. --- OpenSim/TestSuite/BotManager.cs | 51 +---------------------------------------- 1 file changed, 1 insertion(+), 50 deletions(-) (limited to 'OpenSim/TestSuite/BotManager.cs') diff --git a/OpenSim/TestSuite/BotManager.cs b/OpenSim/TestSuite/BotManager.cs index 8eb2027..0838214 100644 --- a/OpenSim/TestSuite/BotManager.cs +++ b/OpenSim/TestSuite/BotManager.cs @@ -40,7 +40,7 @@ namespace OpenSim.TestSuite /// /// Thread/Bot manager for the application /// - public class BotManager : conscmd_callback + public class BotManager { private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); @@ -58,8 +58,6 @@ namespace OpenSim.TestSuite public BotManager() { m_log.Info("In bot manager"); - // m_console = CreateConsole(); - // MainConsole.Instance = m_console; m_lBot = new List(); } @@ -169,52 +167,5 @@ namespace OpenSim.TestSuite pb.shutdown(); } } - - /// - /// Standard CreateConsole routine - /// - /// - protected ConsoleBase CreateConsole() - { - return new ConsoleBase("Region", this); - } - - /// - /// Command runnint tool.. Currently use it to add bots, shutdown and (dangerous)Forcequit - /// - /// - /// - public void RunCmd(string command, string[] cmdparams) - { - switch (command) - { - case "shutdown": - m_console.Warn("BOTMANAGER", "Shutting down bots"); - doBotShutdown(); - break; - case "quit": - m_console.Warn("DANGER", "This should only be used to quit the program if you've already used the shutdown command and the program hasn't quit"); - Environment.Exit(0); - break; - case "addbots": - int newbots; - Int32.TryParse(cmdparams[0], out newbots); - - if (newbots > 0) - addbots(newbots); - break; - case "help": - m_console.Notice("HELP", "\nshutdown - graceful shutdown\naddbots - adds n bots to the test\nquit - forcequits, dangerous if you have not already run shutdown"); - break; - } - } - - /// - /// Required method to implement the conscmd_callback interface - /// - /// What to show - public void Show(string[] showParams) - { - } } } -- cgit v1.1