public object SendAttachments(string funct, object param) { object[] parameters = (object[])param; IScenePresence sp = (IScenePresence)parameters[1]; Interfaces.GridRegion dest = (Interfaces.GridRegion)parameters[0]; // this is never used.. IAttachmentsModule att = sp.Scene.RequestModuleInterface <IAttachmentsModule> (); if (m_userAttachments.ContainsKey(sp.UUID)) { Util.FireAndForget(delegate { foreach (ISceneEntity attachment in m_userAttachments[sp.UUID]) { Connectors.Simulation.SimulationServiceConnector ssc = new Connectors.Simulation.SimulationServiceConnector(); attachment.IsDeleted = false;//Fix this, we 'did' get removed from the sim already //Now send it to them ssc.CreateObject(dest, (ISceneObject)attachment); attachment.IsDeleted = true; } }); } return(null); }
public object SendAttachments (string funct, object param) { object[] parameters = (object[])param; IScenePresence sp = (IScenePresence)parameters[1]; Interfaces.GridRegion dest = (Interfaces.GridRegion)parameters[0]; // this is never used.. IAttachmentsModule att = sp.Scene.RequestModuleInterface<IAttachmentsModule> (); if (m_userAttachments.ContainsKey(sp.UUID)) { Util.FireAndForget (delegate { foreach (ISceneEntity attachment in m_userAttachments[sp.UUID]) { Connectors.Simulation.SimulationServiceConnector ssc = new Connectors.Simulation.SimulationServiceConnector (); attachment.IsDeleted = false;//Fix this, we 'did' get removed from the sim already //Now send it to them ssc.CreateObject (dest, (ISceneObject)attachment); attachment.IsDeleted = true; } }); } return null; }