aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2011-11-19 00:29:52 +0000
committerJustin Clark-Casey (justincc)2011-11-19 00:29:52 +0000
commitd05d065d859c8877cb910cf5748e32e1560086a6 (patch)
treeb4b6d1053da7b49810cdd72ae265e2457d2e43e4 /OpenSim/Data
parentimprove region deregistration log message (diff)
downloadopensim-SC-d05d065d859c8877cb910cf5748e32e1560086a6.zip
opensim-SC-d05d065d859c8877cb910cf5748e32e1560086a6.tar.gz
opensim-SC-d05d065d859c8877cb910cf5748e32e1560086a6.tar.bz2
opensim-SC-d05d065d859c8877cb910cf5748e32e1560086a6.tar.xz
Improve some grid region log messages to express regions at co-ordinate (e.g. 1000, 1000) rather than meter positions (256000, 256000)
Diffstat (limited to '')
-rw-r--r--OpenSim/Data/IRegionData.cs20
1 files changed, 20 insertions, 0 deletions
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
37 public UUID RegionID; 37 public UUID RegionID;
38 public UUID ScopeID; 38 public UUID ScopeID;
39 public string RegionName; 39 public string RegionName;
40
41 /// <summary>
42 /// The position in meters of this region.
43 /// </summary>
40 public int posX; 44 public int posX;
45
46 /// <summary>
47 /// The position in meters of this region.
48 /// </summary>
41 public int posY; 49 public int posY;
50
42 public int sizeX; 51 public int sizeX;
43 public int sizeY; 52 public int sizeY;
53
54 /// <summary>
55 /// Return the x-coordinate of this region. We currently assume that every region is the same size.
56 /// </summary>
57 public int coordX { get { return (sizeX != 0) ? posX / sizeX : -1; } }
58
59 /// <summary>
60 /// Return the y-coordinate of this region. We currently assume that every region is the same size.
61 /// </summary>
62 public int coordY { get { return (sizeY != 0) ? posY / sizeY : -1; } }
63
44 public Dictionary<string, object> Data; 64 public Dictionary<string, object> Data;
45 } 65 }
46 66