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/Region/Framework/Scenes/SceneBase.cs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'OpenSim/Region/Framework/Scenes/SceneBase.cs') diff --git a/OpenSim/Region/Framework/Scenes/SceneBase.cs b/OpenSim/Region/Framework/Scenes/SceneBase.cs index e58d3ce..cee9037 100644 --- a/OpenSim/Region/Framework/Scenes/SceneBase.cs +++ b/OpenSim/Region/Framework/Scenes/SceneBase.cs @@ -32,6 +32,7 @@ using System.Threading; using OpenMetaverse; using log4net; using OpenSim.Framework; +using OpenSim.Framework.Console; using OpenSim.Framework.Communications.Cache; using OpenSim.Region.Framework.Interfaces; @@ -458,5 +459,12 @@ namespace OpenSim.Region.Framework.Scenes break; } } + + public void AddCommand(string module, string command, string shorthelp, string longhelp, CommandDelegate callback) + { + if (MainConsole.Instance == null) + return; + MainConsole.Instance.Commands.AddCommand(module, command, shorthelp, longhelp, callback); + } } } -- cgit v1.1