diff options
Diffstat (limited to 'OpenSim/Region/Terrain.BasicTerrain')
-rw-r--r-- | OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs | 30 |
1 files changed, 11 insertions, 19 deletions
diff --git a/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs b/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs index 0ad60df..8bd09e3 100644 --- a/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs +++ b/OpenSim/Region/Terrain.BasicTerrain/TerrainEngine.cs | |||
@@ -815,6 +815,17 @@ namespace OpenSim.Region.Terrain | |||
815 | } | 815 | } |
816 | 816 | ||
817 | /// <summary> | 817 | /// <summary> |
818 | /// Wrapper to heightmap.get() | ||
819 | /// </summary> | ||
820 | /// <param name="x">X coord</param> | ||
821 | /// <param name="y">Y coord</param> | ||
822 | /// <returns>Height at specified coordinates</returns> | ||
823 | public double get(int x, int y) | ||
824 | { | ||
825 | return heightmap.get(x, y); | ||
826 | } | ||
827 | |||
828 | /// <summary> | ||
818 | /// Multiplies the heightfield by val | 829 | /// Multiplies the heightfield by val |
819 | /// </summary> | 830 | /// </summary> |
820 | /// <param name="meep">The heightfield</param> | 831 | /// <param name="meep">The heightfield</param> |
@@ -828,25 +839,6 @@ namespace OpenSim.Region.Terrain | |||
828 | } | 839 | } |
829 | 840 | ||
830 | /// <summary> | 841 | /// <summary> |
831 | /// Returns the height at the coordinates x,y | ||
832 | /// </summary> | ||
833 | /// <param name="x">X Coordinate</param> | ||
834 | /// <param name="y">Y Coordinate</param> | ||
835 | /// <returns></returns> | ||
836 | public float this[int x, int y] | ||
837 | { | ||
838 | get | ||
839 | { | ||
840 | return (float)heightmap.get(x, y); | ||
841 | } | ||
842 | set | ||
843 | { | ||
844 | tainted++; | ||
845 | heightmap.set(x, y, (double)value); | ||
846 | } | ||
847 | } | ||
848 | |||
849 | /// <summary> | ||
850 | /// Exports the current heightmap to a PNG file | 842 | /// Exports the current heightmap to a PNG file |
851 | /// </summary> | 843 | /// </summary> |
852 | /// <param name="filename">The destination filename for the image</param> | 844 | /// <param name="filename">The destination filename for the image</param> |