From fff5459f4d3a6fcb7acae9e092fd8aae3c74dd7b Mon Sep 17 00:00:00 2001
From: Justin Clark-Casey (justincc)
Date: Fri, 28 May 2010 20:07:15 +0100
Subject: Add ability to load IARs directly from URIs
So, something like
load iar Justin Clark-Casey / PASSWORD http://justincc.org/downloads/iars/my-great-items.iar
Will load my IAR directly from the web.
---
OpenSim/Region/Framework/Scenes/SceneBase.cs | 26 +++++++++++++++++++++++++-
1 file changed, 25 insertions(+), 1 deletion(-)
(limited to 'OpenSim/Region/Framework')
diff --git a/OpenSim/Region/Framework/Scenes/SceneBase.cs b/OpenSim/Region/Framework/Scenes/SceneBase.cs
index bfc19b7..c363a91 100644
--- a/OpenSim/Region/Framework/Scenes/SceneBase.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneBase.cs
@@ -498,8 +498,31 @@ namespace OpenSim.Region.Framework.Scenes
}
}
+ ///
+ /// Call this from a region module to add a command to the OpenSim console.
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
public void AddCommand(object mod, string command, string shorthelp, string longhelp, CommandDelegate callback)
{
+ AddCommand(mod, command, shorthelp, longhelp, string.Empty, callback);
+ }
+
+ ///
+ /// Call this from a region module to add a command to the OpenSim console.
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ public void AddCommand(
+ object mod, string command, string shorthelp, string longhelp, string descriptivehelp, CommandDelegate callback)
+ {
if (MainConsole.Instance == null)
return;
@@ -523,7 +546,8 @@ namespace OpenSim.Region.Framework.Scenes
else throw new Exception("AddCommand module parameter must be IRegionModule or IRegionModuleBase");
}
- MainConsole.Instance.Commands.AddCommand(modulename, shared, command, shorthelp, longhelp, callback);
+ MainConsole.Instance.Commands.AddCommand(
+ modulename, shared, command, shorthelp, longhelp, descriptivehelp, callback);
}
public virtual ISceneObject DeserializeObject(string representation)
--
cgit v1.1