aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services/GridService/GridService.cs
diff options
context:
space:
mode:
authorMarck2010-08-06 07:46:19 +0200
committerDiva Canto2010-08-06 17:02:03 -0700
commit7e47ab746ef588648b8edbbc7cfb48c4d90c5e34 (patch)
tree0ba450dffb35724504634f88cc21b9c59a983130 /OpenSim/Services/GridService/GridService.cs
parentRemove old test classes that don't actually test anything not done elsewhere (diff)
downloadopensim-SC_OLD-7e47ab746ef588648b8edbbc7cfb48c4d90c5e34.zip
opensim-SC_OLD-7e47ab746ef588648b8edbbc7cfb48c4d90c5e34.tar.gz
opensim-SC_OLD-7e47ab746ef588648b8edbbc7cfb48c4d90c5e34.tar.bz2
opensim-SC_OLD-7e47ab746ef588648b8edbbc7cfb48c4d90c5e34.tar.xz
Allow creation of link regions if there is an existing region within a 4096 range.
Also add GetHyperlinks() to the grid service.
Diffstat (limited to '')
-rw-r--r--OpenSim/Services/GridService/GridService.cs16
1 files changed, 16 insertions, 0 deletions
diff --git a/OpenSim/Services/GridService/GridService.cs b/OpenSim/Services/GridService/GridService.cs
index ebaed42..79a45fe 100644
--- a/OpenSim/Services/GridService/GridService.cs
+++ b/OpenSim/Services/GridService/GridService.cs
@@ -426,6 +426,22 @@ namespace OpenSim.Services.GridService
426 return ret; 426 return ret;
427 } 427 }
428 428
429 public List<GridRegion> GetHyperlinks(UUID scopeID)
430 {
431 List<GridRegion> ret = new List<GridRegion>();
432
433 List<RegionData> regions = m_Database.GetHyperlinks(scopeID);
434
435 foreach (RegionData r in regions)
436 {
437 if ((Convert.ToInt32(r.Data["flags"]) & (int)OpenSim.Data.RegionFlags.RegionOnline) != 0)
438 ret.Add(RegionData2RegionInfo(r));
439 }
440
441 m_log.DebugFormat("[GRID SERVICE]: Hyperlinks returned {0} regions", ret.Count);
442 return ret;
443 }
444
429 public int GetRegionFlags(UUID scopeID, UUID regionID) 445 public int GetRegionFlags(UUID scopeID, UUID regionID)
430 { 446 {
431 RegionData region = m_Database.Get(regionID, scopeID); 447 RegionData region = m_Database.Get(regionID, scopeID);