OpenSim/Region/Framework/Scenes/SceneBase.cs
/// <summary>
/// Call this from a region module to add a command to the OpenSim console.
/// </summary>
/// <param name="category">
/// Category of the command.  This is the section under which it will appear when the user asks for help
/// </param>
/// <param name="mod"></param>
/// <param name="command"></param>
/// <param name="shorthelp"></param>
/// <param name="longhelp"></param>
/// <param name="descriptivehelp"></param>
/// <param name="callback"></param>
Call this from a region module to add a command to the OpenSim console.
Call this from a region module to add a command to the OpenSim console .
public void AddCommand(
            string category, IRegionModuleBase module, string command,
            string shorthelp, string longhelp, string descriptivehelp, CommandDelegate callback)
        {
            if (MainConsole.Instance == null)
                return;
            bool shared = false;
            if (module != null)
                shared = module is ISharedRegionModule;
            MainConsole.Instance.Commands.AddCommand(
                category, shared, command, shorthelp, longhelp, descriptivehelp, callback);
        }
public void AddCommand ( string category , IRegionModuleBase module , string command , string shorthelp , string longhelp , string descriptivehelp , CommandDelegate callback ) { if ( MainConsole . Instance == null ) return ; bool shared = false ; if ( module != null ) shared = module is ISharedRegionModule ; MainConsole . Instance . Commands . AddCommand ( category , shared , command , shorthelp , longhelp , descriptivehelp , callback ) ; }
Call this from a region module to add a command to the OpenSim console.
Call this from a region module to add a command to the OpenSim console .
category
string
Category of the command.  This is the section under which it will appear when the user asks for help
Category of the command . This is the section under which it will appear when the user asks for help
module
IRegionModuleBase
command
string
None
shorthelp
string
None
longhelp
string
None
descriptivehelp
string
None
callback
CommandDelegate
None
mod
None