* Added region flags to the region config files
* Implemented grid map support (still acts weird until MapLayerReply is properly implemented)
* Temporarily disabling HyperGrid teleport until proper HyperGrid config file support is added

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2489 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
John Hurliman
2009-03-17 01:26:59 +00:00
parent d4e07b8c4d
commit 3c5d40402f
15 changed files with 284 additions and 24 deletions

View File

@@ -121,6 +121,26 @@ namespace Simian
return grid.TryGetValue(handle, out region);
}
public IList<RegionInfo> GetRegionsInArea(int minX, int minY, int maxX, int maxY)
{
lock (syncRoot)
{
IList<RegionInfo> regions = grid.FindAll(
delegate(RegionInfo region)
{
uint x, y;
Utils.LongToUInts(region.Handle, out x, out y);
x /= 256;
y /= 256;
return (x >= minX && y >= minY && x <= maxX && y <= maxY);
}
);
return regions;
}
}
public ISceneProvider GetDefaultLocalScene()
{
if (server.Scenes.Count > 0)