From 5759313f7f3ff121d20e5eb44013e2bbb4bc2eee Mon Sep 17 00:00:00 2001
From: Justin Clark-Casey (justincc)
Date: Sat, 19 May 2012 04:56:47 +0100
Subject: Add size of region to OAR control file. Megaregions (sw root OARs
when saved) will have a size larger than 256x256
Not yet read. Do not rely on this information yet, it may change.
---
.../Region/Framework/Interfaces/IRegionCombinerModule.cs | 16 +++++++++++++++-
1 file changed, 15 insertions(+), 1 deletion(-)
(limited to 'OpenSim/Region/Framework/Interfaces/IRegionCombinerModule.cs')
diff --git a/OpenSim/Region/Framework/Interfaces/IRegionCombinerModule.cs b/OpenSim/Region/Framework/Interfaces/IRegionCombinerModule.cs
index ca4ed5c..e03ac5a 100644
--- a/OpenSim/Region/Framework/Interfaces/IRegionCombinerModule.cs
+++ b/OpenSim/Region/Framework/Interfaces/IRegionCombinerModule.cs
@@ -40,6 +40,20 @@ namespace OpenSim.Region.Framework.Interfaces
///
/// Does the given id belong to the root region of a megaregion?
///
- bool IsRootForMegaregion(UUID sceneId);
+ bool IsRootForMegaregion(UUID regionId);
+
+ ///
+ /// Gets the size of megaregion.
+ ///
+ ///
+ /// Returns size in meters.
+ /// Do not rely on this method remaining the same - this area is actively under development.
+ ///
+ ///
+ /// The id of the root region for a megaregion.
+ /// This may change in the future to allow any region id that makes up a megaregion.
+ /// Currently, will throw an exception if this does not match a root region.
+ ///
+ Vector2 GetSizeOfMegaregion(UUID regionId);
}
}
\ No newline at end of file
--
cgit v1.1