From d05d065d859c8877cb910cf5748e32e1560086a6 Mon Sep 17 00:00:00 2001
From: Justin Clark-Casey (justincc)
Date: Sat, 19 Nov 2011 00:29:52 +0000
Subject: Improve some grid region log messages to express regions at
co-ordinate (e.g. 1000, 1000) rather than meter positions (256000, 256000)
---
OpenSim/Data/IRegionData.cs | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
(limited to 'OpenSim/Data')
diff --git a/OpenSim/Data/IRegionData.cs b/OpenSim/Data/IRegionData.cs
index 46dc4fb..4761a7a 100644
--- a/OpenSim/Data/IRegionData.cs
+++ b/OpenSim/Data/IRegionData.cs
@@ -37,10 +37,30 @@ namespace OpenSim.Data
public UUID RegionID;
public UUID ScopeID;
public string RegionName;
+
+ ///
+ /// The position in meters of this region.
+ ///
public int posX;
+
+ ///
+ /// The position in meters of this region.
+ ///
public int posY;
+
public int sizeX;
public int sizeY;
+
+ ///
+ /// Return the x-coordinate of this region. We currently assume that every region is the same size.
+ ///
+ public int coordX { get { return (sizeX != 0) ? posX / sizeX : -1; } }
+
+ ///
+ /// Return the y-coordinate of this region. We currently assume that every region is the same size.
+ ///
+ public int coordY { get { return (sizeY != 0) ? posY / sizeY : -1; } }
+
public Dictionary Data;
}
--
cgit v1.1