diff options
author | Kunnis | 2009-12-11 23:14:01 -0600 |
---|---|---|
committer | Melanie | 2009-12-12 04:44:32 +0000 |
commit | d89f3e98111c7d228ab6196093eb308445429b72 (patch) | |
tree | a69a0e9db77fe80cc06210a1144f51430599f2f8 /OpenSim/Region/Framework | |
parent | Merge branch 'master' of melanie@opensimulator.org:/var/git/opensim (diff) | |
download | opensim-SC_OLD-d89f3e98111c7d228ab6196093eb308445429b72.zip opensim-SC_OLD-d89f3e98111c7d228ab6196093eb308445429b72.tar.gz opensim-SC_OLD-d89f3e98111c7d228ab6196093eb308445429b72.tar.bz2 opensim-SC_OLD-d89f3e98111c7d228ab6196093eb308445429b72.tar.xz |
Getting rid of SimpleRegionInfo and SerializableRegionInfo per Mel
Signed-off-by: Melanie <melanie@t-data.com>
Diffstat (limited to 'OpenSim/Region/Framework')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneCommunicationService.cs | 37 |
1 files changed, 4 insertions, 33 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneCommunicationService.cs b/OpenSim/Region/Framework/Scenes/SceneCommunicationService.cs index 3892769..e649139 100644 --- a/OpenSim/Region/Framework/Scenes/SceneCommunicationService.cs +++ b/OpenSim/Region/Framework/Scenes/SceneCommunicationService.cs | |||
@@ -356,8 +356,6 @@ namespace OpenSim.Region.Framework.Scenes | |||
356 | neighbours.RemoveAll(delegate(GridRegion r) { return r.RegionID == m_regionInfo.RegionID; }); | 356 | neighbours.RemoveAll(delegate(GridRegion r) { return r.RegionID == m_regionInfo.RegionID; }); |
357 | 357 | ||
358 | return neighbours; | 358 | return neighbours; |
359 | //SimpleRegionInfo regionData = m_commsProvider.GridService.RequestNeighbourInfo() | ||
360 | //return m_commsProvider.GridService.RequestNeighbours(pRegionLocX, pRegionLocY); | ||
361 | } | 359 | } |
362 | } | 360 | } |
363 | 361 | ||
@@ -367,20 +365,8 @@ namespace OpenSim.Region.Framework.Scenes | |||
367 | /// </summary> | 365 | /// </summary> |
368 | public void EnableNeighbourChildAgents(ScenePresence avatar, List<RegionInfo> lstneighbours) | 366 | public void EnableNeighbourChildAgents(ScenePresence avatar, List<RegionInfo> lstneighbours) |
369 | { | 367 | { |
370 | //List<SimpleRegionInfo> neighbours = new List<SimpleRegionInfo>(); | ||
371 | List<GridRegion> neighbours = new List<GridRegion>(); | 368 | List<GridRegion> neighbours = new List<GridRegion>(); |
372 | 369 | ||
373 | ////m_commsProvider.GridService.RequestNeighbours(m_regionInfo.RegionLocX, m_regionInfo.RegionLocY); | ||
374 | //for (int i = 0; i < lstneighbours.Count; i++) | ||
375 | //{ | ||
376 | // // We don't want to keep sending to regions that consistently fail on comms. | ||
377 | // if (!(lstneighbours[i].commFailTF)) | ||
378 | // { | ||
379 | // neighbours.Add(new SimpleRegionInfo(lstneighbours[i])); | ||
380 | // } | ||
381 | //} | ||
382 | // we're going to be using the above code once neighbour cache is correct. Currently it doesn't appear to be | ||
383 | // So we're temporarily going back to the old method of grabbing it from the Grid Server Every time :/ | ||
384 | if (m_regionInfo != null) | 370 | if (m_regionInfo != null) |
385 | { | 371 | { |
386 | neighbours = RequestNeighbours(avatar.Scene,m_regionInfo.RegionLocX, m_regionInfo.RegionLocY); | 372 | neighbours = RequestNeighbours(avatar.Scene,m_regionInfo.RegionLocX, m_regionInfo.RegionLocY); |
@@ -431,7 +417,6 @@ namespace OpenSim.Region.Framework.Scenes | |||
431 | 417 | ||
432 | /// Create the necessary child agents | 418 | /// Create the necessary child agents |
433 | List<AgentCircuitData> cagents = new List<AgentCircuitData>(); | 419 | List<AgentCircuitData> cagents = new List<AgentCircuitData>(); |
434 | //foreach (SimpleRegionInfo neighbour in neighbours) | ||
435 | foreach (GridRegion neighbour in neighbours) | 420 | foreach (GridRegion neighbour in neighbours) |
436 | { | 421 | { |
437 | if (neighbour.RegionHandle != avatar.Scene.RegionInfo.RegionHandle) | 422 | if (neighbour.RegionHandle != avatar.Scene.RegionInfo.RegionHandle) |
@@ -583,7 +568,9 @@ namespace OpenSim.Region.Framework.Scenes | |||
583 | //m_log.Info("[INTER]: " + debugRegionName + ": SceneCommunicationService: Sending InterRegion Notification that region is up " + region.RegionName); | 568 | //m_log.Info("[INTER]: " + debugRegionName + ": SceneCommunicationService: Sending InterRegion Notification that region is up " + region.RegionName); |
584 | 569 | ||
585 | for (int x = (int)region.RegionLocX - 1; x <= region.RegionLocX + 1; x++) | 570 | for (int x = (int)region.RegionLocX - 1; x <= region.RegionLocX + 1; x++) |
571 | { | ||
586 | for (int y = (int)region.RegionLocY - 1; y <= region.RegionLocY + 1; y++) | 572 | for (int y = (int)region.RegionLocY - 1; y <= region.RegionLocY + 1; y++) |
573 | { | ||
587 | if (!((x == region.RegionLocX) && (y == region.RegionLocY))) // skip this region | 574 | if (!((x == region.RegionLocX) && (y == region.RegionLocY))) // skip this region |
588 | { | 575 | { |
589 | ulong handle = Utils.UIntsToLong((uint)x * Constants.RegionSize, (uint)y * Constants.RegionSize); | 576 | ulong handle = Utils.UIntsToLong((uint)x * Constants.RegionSize, (uint)y * Constants.RegionSize); |
@@ -593,24 +580,8 @@ namespace OpenSim.Region.Framework.Scenes | |||
593 | InformNeighborsThatRegionisUpCompleted, | 580 | InformNeighborsThatRegionisUpCompleted, |
594 | d); | 581 | d); |
595 | } | 582 | } |
596 | 583 | } | |
597 | //List<GridRegion> neighbours = new List<GridRegion>(); | 584 | } |
598 | //// This stays uncached because we don't already know about our neighbors at this point. | ||
599 | |||
600 | //neighbours = m_scene.GridService.GetNeighbours(m_regionInfo.ScopeID, m_regionInfo.RegionID); | ||
601 | //if (neighbours != null) | ||
602 | //{ | ||
603 | // for (int i = 0; i < neighbours.Count; i++) | ||
604 | // { | ||
605 | // InformNeighbourThatRegionUpDelegate d = InformNeighboursThatRegionIsUpAsync; | ||
606 | |||
607 | // d.BeginInvoke(neighbourService, region, neighbours[i].RegionHandle, | ||
608 | // InformNeighborsThatRegionisUpCompleted, | ||
609 | // d); | ||
610 | // } | ||
611 | //} | ||
612 | |||
613 | //bool val = m_commsProvider.InterRegion.RegionUp(new SerializableRegionInfo(region)); | ||
614 | } | 585 | } |
615 | 586 | ||
616 | 587 | ||