mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 03:45:35 +08:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user