[Simian]
* 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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user