aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Data')
-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