mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 02:36:00 +08:00
varregion: Add MaxRegionSize constant and enforce in RegionInfo.
Intermediate checkin of changing border cross computation from checking boundry limits to requests to GridService. Not totally functional.
This commit is contained in:
@@ -30,11 +30,13 @@ namespace OpenSim.Framework
|
||||
{
|
||||
public class Constants
|
||||
{
|
||||
// 'RegionSize' captures the legacy region size.
|
||||
// 'RegionSize' is the legacy region size.
|
||||
// DO NOT USE THIS FOR ANY NEW CODE. Use Scene.RegionSize[XYZ] as a region might not
|
||||
// be the legacy region size.
|
||||
public const uint RegionSize = 256;
|
||||
public const uint RegionHeight = 4096;
|
||||
// This could be a parameters but, really, a region of greater than this is pretty unmanageable
|
||||
public const uint MaximumRegionSize = 8192;
|
||||
|
||||
// Since terrain is stored in 16x16 heights, regions must be a multiple of this number and that is the minimum
|
||||
public const int MinRegionSize = 16;
|
||||
|
||||
Reference in New Issue
Block a user