add GetRegionByHandle methods

This commit is contained in:
UbitUmarov
2020-08-25 15:01:55 +01:00
parent b6d26c89e6
commit 39ab8902da
5 changed files with 42 additions and 4 deletions

View File

@@ -446,6 +446,13 @@ namespace OpenSim.Services.GridService
return null;
}
public GridRegion GetRegionByHandle(UUID scopeID, ulong regionhandle)
{
int x = (int)(regionhandle >> 32);
int y = (int)(regionhandle & 0xfffffffful);
return GetRegionByPosition(scopeID, x, y);
}
// Get a region given its base coordinates.
// NOTE: this is NOT 'get a region by some point in the region'. The coordinate MUST
// be the base coordinate of the region.