From f11a97f12d328af8bb39b92fec5cb5780983b66a Mon Sep 17 00:00:00 2001 From: Diva Canto Date: Thu, 7 Jan 2010 15:53:55 -0800 Subject: * Finished SimulationServiceConnector * Started rerouting calls to UserService. * Compiles. May run. --- .../Scenes/Hypergrid/HGSceneCommunicationService.cs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'OpenSim/Region/Framework/Scenes/Hypergrid/HGSceneCommunicationService.cs') diff --git a/OpenSim/Region/Framework/Scenes/Hypergrid/HGSceneCommunicationService.cs b/OpenSim/Region/Framework/Scenes/Hypergrid/HGSceneCommunicationService.cs index 416826c..f64a7a0 100644 --- a/OpenSim/Region/Framework/Scenes/Hypergrid/HGSceneCommunicationService.cs +++ b/OpenSim/Region/Framework/Scenes/Hypergrid/HGSceneCommunicationService.cs @@ -202,8 +202,7 @@ namespace OpenSim.Region.Framework.Scenes.Hypergrid string reason = String.Empty; - //if (!m_commsProvider.InterRegion.InformRegionOfChildAgent(reg.RegionHandle, agentCircuit)) - if (!m_interregionCommsOut.SendCreateChildAgent(reg.RegionHandle, agentCircuit, teleportFlags, out reason)) + if (!m_scene.SimulationService.CreateAgent(reg, agentCircuit, teleportFlags, out reason)) { avatar.ControllingClient.SendTeleportFailed(String.Format("Destination is not accepting teleports: {0}", reason)); @@ -282,9 +281,9 @@ namespace OpenSim.Region.Framework.Scenes.Hypergrid avatar.CopyTo(agent); agent.Position = position; agent.CallbackURI = "http://" + m_regionInfo.ExternalHostName + ":" + m_regionInfo.HttpPort + - "/agent/" + avatar.UUID.ToString() + "/" + avatar.Scene.RegionInfo.RegionHandle.ToString() + "/release/"; + "/agent/" + avatar.UUID.ToString() + "/" + avatar.Scene.RegionInfo.RegionID.ToString() + "/release/"; - m_interregionCommsOut.SendChildAgentUpdate(reg.RegionHandle, agent); + m_scene.SimulationService.UpdateAgent(reg, agent); m_log.DebugFormat( "[CAPS]: Sending new CAPS seed url {0} to client {1}", agentCircuit.CapsPath, avatar.UUID); @@ -322,8 +321,7 @@ namespace OpenSim.Region.Framework.Scenes.Hypergrid avatar.Scene.InformClientOfNeighbours(avatar); // Finally, kill the agent we just created at the destination. - m_interregionCommsOut.SendCloseAgent(reg.RegionHandle, avatar.UUID); - + m_scene.SimulationService.CloseAgent(reg, avatar.UUID); return; } @@ -336,7 +334,7 @@ namespace OpenSim.Region.Framework.Scenes.Hypergrid avatar.MakeChildAgent(); // CrossAttachmentsIntoNewRegion is a synchronous call. We shouldn't need to wait after it - avatar.CrossAttachmentsIntoNewRegion(reg.RegionHandle, true); + avatar.CrossAttachmentsIntoNewRegion(reg, true); // Finally, let's close this previously-known-as-root agent, when the jump is outside the view zone -- cgit v1.1