mirror of
https://github.com/opensim/opensim.git
synced 2026-07-31 13:55:35 +08:00
Introduce IXmlRpcRouter, an interface that allows registering XMLRPC
UUIDs with a central marshaller for grids, or publish the ULS for objects elsewhere.
This commit is contained in:
@@ -78,6 +78,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
||||
#pragma warning disable 414
|
||||
private EventManager m_EventManager;
|
||||
#pragma warning restore 414
|
||||
private IXmlRpcRouter m_XmlRpcRouter;
|
||||
private int m_EventLimit;
|
||||
private bool m_KillTimedOutScripts;
|
||||
|
||||
@@ -130,6 +131,11 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
||||
get { return m_ScriptEngines; }
|
||||
}
|
||||
|
||||
public IScriptModule ScriptModule
|
||||
{
|
||||
get { return this; }
|
||||
}
|
||||
|
||||
// private struct RezScriptParms
|
||||
// {
|
||||
// uint LocalID;
|
||||
@@ -222,6 +228,13 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
||||
m_MaxScriptQueue, m_StackSize);
|
||||
|
||||
m_Scene.StackModuleInterface<IScriptModule>(this);
|
||||
|
||||
m_XmlRpcRouter = m_Scene.RequestModuleInterface<IXmlRpcRouter>();
|
||||
if (m_XmlRpcRouter != null)
|
||||
{
|
||||
OnScriptRemoved += m_XmlRpcRouter.ScriptRemoved;
|
||||
OnObjectRemoved += m_XmlRpcRouter.ObjectRemoved;
|
||||
}
|
||||
}
|
||||
|
||||
public void PostInitialise()
|
||||
@@ -917,6 +930,11 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
||||
return false;
|
||||
}
|
||||
|
||||
public bool PostScriptEvent(UUID itemID, string name, Object[] p)
|
||||
{
|
||||
return PostScriptEvent(itemID, new EventParams(name, p, new DetectParams[0]));
|
||||
}
|
||||
|
||||
public Assembly OnAssemblyResolve(object sender,
|
||||
ResolveEventArgs args)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user