private void InstallModule()
{
//
// CONSOLE COMMAND INTERFACE
//
// Adds various commands to the server's console to allow for direct manipulation
// of the module and it's internal properties.
//
// Add a command city set to allow for the direct setting of the properties of the module.
OpenSim.Framework.MainConsole.Instance.Commands.AddCommand(
"city", true, "city set", "Sets an internal property to the given value.",
"Allows for the manipulation of the internal property values in the City Builder Module",
cmdSetParameter);
// Add a command city get to allow for the display of the current value for a module property.
OpenSim.Framework.MainConsole.Instance.Commands.AddCommand(
"city", true, "city generate", "Auto generate a city from given parameters.",
"This command will generate a city across an entire region or server instance of regions " +
"based on the given parameters", cmdGenerate);
//export
OpenSim.Framework.MainConsole.Instance.Commands.AddCommand("city", true, "city export",
"Export the current settings for this city to a file.",
"Exports current module settings for the city for each region that is part of the city",
cmdExport);
//import
OpenSim.Framework.MainConsole.Instance.Commands.AddCommand("city", true, "city import",
"Imports a previously saved city definition file, or import from GTA IV PC",
"Imports the settings required for a given city and recreate it inworld on one or more regions",
cmdImport);
//help
OpenSim.Framework.MainConsole.Instance.Commands.AddCommand("city", true, "city help",
"Display help information",
"Display some help information about the use of the City Builder module from the command console",
cmdHelp);
//reset
OpenSim.Framework.MainConsole.Instance.Commands.AddCommand("city", true, "city reset",
"Reset the internal properties of the module to the ones used during development.",
"Reset properties to 'Cobra ElDiablo' (City Owner), 'Liberty City' (City Name), Lave (City Region [SINGLE])",
cmdReset);
// enable
OpenSim.Framework.MainConsole.Instance.Commands.AddCommand("city", true, "city enable",
"Enables the City Module.", "Allows for the module to be re-enabled after changing internal properties",
cmdEnable);
// disable
OpenSim.Framework.MainConsole.Instance.Commands.AddCommand("city", true, "city disable",
"Disables the City Module.", "Allows for the module to be disabled before altering internal properties.",
cmdDisable);
// add a command 'city info' to the main console.
OpenSim.Framework.MainConsole.Instance.Commands.AddCommand(
"city", true, "city info", "Displays information from the City Builder Module.",
"Displays information about the current parameters from the city, like the number of buildings.",
cmdInfo);
// add a 'city building' command (note has subcommands)
OpenSim.Framework.MainConsole.Instance.Commands.AddCommand(
"city", true, "city building", "City building interface",
"Allow for the manipulation of buildings directly.",
cmdBuilding);
OpenSim.Framework.MainConsole.Instance.Commands.AddCommand(
"city", true, "city backup", "Backup the city instance to disk/database.",
"Allows for the generated city to be backed up to disk or database.",
cmdBackup);
OpenSim.Framework.MainConsole.Instance.Commands.AddCommand(
"city", true, "city restore", "Restores a city from disk or database.",
"Allows for previously backed up cities to be restored from disk or database.",
cmdRestore);
OpenSim.Framework.MainConsole.Instance.Commands.AddCommand(
"city", true, "city list", "List all known cities",
"Displays a list of all cities present on disk or database.",
cmdList);
OpenSim.Framework.MainConsole.Instance.Commands.AddCommand(
"city", true, "city builder", "", "Opens a GUI editor for city generation parameter tweaking.",
cmdCityBuilder);
m_fInitialised = true;
}