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/Services/Interfaces/IGridService.cs | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) (limited to 'OpenSim/Services/Interfaces/IGridService.cs') diff --git a/OpenSim/Services/Interfaces/IGridService.cs b/OpenSim/Services/Interfaces/IGridService.cs index 41dd20c..7137f9a 100644 --- a/OpenSim/Services/Interfaces/IGridService.cs +++ b/OpenSim/Services/Interfaces/IGridService.cs @@ -103,9 +103,8 @@ namespace OpenSim.Services.Interfaces int GetRegionFlags(UUID scopeID, UUID regionID); } - public class GridRegion : Object + public class GridRegion { - /// /// The port by which http communication occurs with the region /// @@ -149,6 +148,19 @@ namespace OpenSim.Services.Interfaces protected IPEndPoint m_internalEndPoint; + /// + /// The co-ordinate of this region. + /// + public int RegionCoordX { get { return RegionLocX / (int)Constants.RegionSize; } } + + /// + /// The co-ordinate of this region + /// + public int RegionCoordY { get { return RegionLocY / (int)Constants.RegionSize; } } + + /// + /// The location of this region in meters. + /// public int RegionLocX { get { return m_regionLocX; } @@ -156,6 +168,9 @@ namespace OpenSim.Services.Interfaces } protected int m_regionLocX; + /// + /// The location of this region in meters. + /// public int RegionLocY { get { return m_regionLocY; } @@ -407,8 +422,6 @@ namespace OpenSim.Services.Interfaces if (kvp.ContainsKey("Token")) Token = kvp["Token"].ToString(); - } } - } -- cgit v1.1