Improve some grid region log messages to express regions at co-ordinate (e.g. 1000, 1000) rather than meter positions (256000, 256000)

This commit is contained in:
Justin Clark-Casey (justincc)
2011-11-19 00:29:52 +00:00
parent 7a18078177
commit d05d065d85
5 changed files with 50 additions and 13 deletions

View File

@@ -37,10 +37,30 @@ namespace OpenSim.Data
public UUID RegionID;
public UUID ScopeID;
public string RegionName;
/// <summary>
/// The position in meters of this region.
/// </summary>
public int posX;
/// <summary>
/// The position in meters of this region.
/// </summary>
public int posY;
public int sizeX;
public int sizeY;
/// <summary>
/// Return the x-coordinate of this region. We currently assume that every region is the same size.
/// </summary>
public int coordX { get { return (sizeX != 0) ? posX / sizeX : -1; } }
/// <summary>
/// Return the y-coordinate of this region. We currently assume that every region is the same size.
/// </summary>
public int coordY { get { return (sizeY != 0) ? posY / sizeY : -1; } }
public Dictionary<string, object> Data;
}