mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:30:02 +08:00
still some files missing
This commit is contained in:
@@ -254,9 +254,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
// Check HttpRequests
|
||||
try { m_HttpRequest[s].CheckHttpRequests(); } catch { }
|
||||
|
||||
// Check Listeners
|
||||
try { m_Listener[s].CheckListeners(); } catch {}
|
||||
|
||||
// Check ScriptTimers
|
||||
try { m_ScriptTimer[s].CheckTimerEvents(); } catch {}
|
||||
|
||||
|
||||
@@ -55,33 +55,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Plugins
|
||||
m_commsPlugin = m_CmdManager.m_ScriptEngine.World.RequestModuleInterface<IWorldComm>();
|
||||
}
|
||||
|
||||
public void CheckListeners()
|
||||
{
|
||||
if (m_CmdManager.m_ScriptEngine.World == null)
|
||||
return;
|
||||
|
||||
if (m_commsPlugin != null)
|
||||
{
|
||||
ListenerMessage msg;
|
||||
while ((msg = (ListenerMessage)m_commsPlugin.GetNextMessage()) != null)
|
||||
{
|
||||
//Deliver data to prim's listen handler
|
||||
object[] resobj = new object[]
|
||||
{
|
||||
new LSL_Types.LSLInteger(msg.Channel),
|
||||
new LSL_Types.LSLString(msg.Name),
|
||||
new LSL_Types.LSLString(msg.ID.ToString()),
|
||||
new LSL_Types.LSLString(msg.Message)
|
||||
};
|
||||
|
||||
foreach (IScriptEngine e in m_CmdManager.ScriptEngines)
|
||||
{
|
||||
e.PostScriptEvent(msg.ItemID, new EventParams("listen", resobj, new DetectParams[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public Object[] GetSerializationData(UUID itemID)
|
||||
{
|
||||
if (m_commsPlugin != null)
|
||||
|
||||
Reference in New Issue
Block a user