Attempted workaround for Mono's insistence on compiling BasicTerrain incorrectly

This commit is contained in:
Adam Frisby
2007-07-02 23:42:38 +00:00
parent 67af17fdd1
commit 96dfb33bca
2 changed files with 13 additions and 21 deletions

View File

@@ -814,6 +814,17 @@ namespace OpenSim.Region.Terrain
tainted++;
}
/// <summary>
/// Wrapper to heightmap.get()
/// </summary>
/// <param name="x">X coord</param>
/// <param name="y">Y coord</param>
/// <returns>Height at specified coordinates</returns>
public double get(int x, int y)
{
return heightmap.get(x, y);
}
/// <summary>
/// Multiplies the heightfield by val
/// </summary>
@@ -827,25 +838,6 @@ namespace OpenSim.Region.Terrain
return meep;
}
/// <summary>
/// Returns the height at the coordinates x,y
/// </summary>
/// <param name="x">X Coordinate</param>
/// <param name="y">Y Coordinate</param>
/// <returns></returns>
public float this[int x, int y]
{
get
{
return (float)heightmap.get(x, y);
}
set
{
tainted++;
heightmap.set(x, y, (double)value);
}
}
/// <summary>
/// Exports the current heightmap to a PNG file
/// </summary>