mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 03:45:35 +08:00
Removed the exit-region command, now use "change-region root" or "change-region .." to change back to root level. [Would be nice if the command prompt changed to show what the current region was, but think that will need changes to the console code so for now it will have to stay as it is].
This commit is contained in:
@@ -93,6 +93,7 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
// this most likely shouldn't be handled as a API method like this, but doing it for testing purposes
|
||||
public ModuleAPIMethod2<bool, string, byte[]> AddXferFile = null;
|
||||
|
||||
private IHttpRequests m_httpRequestModule = null;
|
||||
private ISimChat m_simChatModule = null;
|
||||
|
||||
#region Properties
|
||||
@@ -196,6 +197,7 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
public void SetModuleInterfaces()
|
||||
{
|
||||
m_simChatModule = this.RequestModuleInterface<ISimChat>();
|
||||
m_httpRequestModule = this.RequestModuleInterface<IHttpRequests>();
|
||||
|
||||
//should change so it uses the module interface functions
|
||||
AddXferFile = (ModuleAPIMethod2<bool, string, byte[]>)this.RequestAPIMethod("API_AddXferFile");
|
||||
@@ -1318,6 +1320,15 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
}
|
||||
}
|
||||
|
||||
public LLUUID MakeHttpRequest(string url, string type, string body)
|
||||
{
|
||||
if (m_httpRequestModule != null)
|
||||
{
|
||||
return m_httpRequestModule.MakeHttpRequest(url, type, body);
|
||||
}
|
||||
return LLUUID.Zero;
|
||||
}
|
||||
|
||||
#region Script Engine
|
||||
private List<OpenSim.Region.Environment.Scenes.Scripting.ScriptEngineInterface> ScriptEngines = new List<OpenSim.Region.Environment.Scenes.Scripting.ScriptEngineInterface>();
|
||||
public void AddScriptEngine(OpenSim.Region.Environment.Scenes.Scripting.ScriptEngineInterface ScriptEngine, LogBase m_logger)
|
||||
|
||||
Reference in New Issue
Block a user