diff options
author | Adam Frisby | 2009-04-04 05:51:26 +0000 |
---|---|---|
committer | Adam Frisby | 2009-04-04 05:51:26 +0000 |
commit | fcbe7b9ed63eb4a64a241113421125c3ecf844b8 (patch) | |
tree | ba4a6ddd40f1eea9b3e6eda0c2be33c5860064a3 /OpenSim/Region/OptionalModules/Scripting/Minimodule/IHeightmap.cs | |
parent | * Proactively fixed bug-potential concerning the fact that m_httpServer prope... (diff) | |
download | opensim-SC_OLD-fcbe7b9ed63eb4a64a241113421125c3ecf844b8.zip opensim-SC_OLD-fcbe7b9ed63eb4a64a241113421125c3ecf844b8.tar.gz opensim-SC_OLD-fcbe7b9ed63eb4a64a241113421125c3ecf844b8.tar.bz2 opensim-SC_OLD-fcbe7b9ed63eb4a64a241113421125c3ecf844b8.tar.xz |
* Drops Heightmap.Get/Heightmap.Set from IHeightmap interface.
* Adds Heightmap[x,y] to interface.
* MRM Scripts should utilize World.Heightmap[x,y] = 0.0; to replace set, and Val = World.Heightmap[x,y] to get.
Diffstat (limited to 'OpenSim/Region/OptionalModules/Scripting/Minimodule/IHeightmap.cs')
-rw-r--r-- | OpenSim/Region/OptionalModules/Scripting/Minimodule/IHeightmap.cs | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/OpenSim/Region/OptionalModules/Scripting/Minimodule/IHeightmap.cs b/OpenSim/Region/OptionalModules/Scripting/Minimodule/IHeightmap.cs index 37cf8ae..afea12b 100644 --- a/OpenSim/Region/OptionalModules/Scripting/Minimodule/IHeightmap.cs +++ b/OpenSim/Region/OptionalModules/Scripting/Minimodule/IHeightmap.cs | |||
@@ -33,9 +33,26 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule | |||
33 | { | 33 | { |
34 | public interface IHeightmap | 34 | public interface IHeightmap |
35 | { | 35 | { |
36 | /// <summary> | ||
37 | /// Returns [or sets] the heightmap value at specified coordinates. | ||
38 | /// </summary> | ||
39 | /// <param name="x">X Coordinate</param> | ||
40 | /// <param name="y">Y Coordinate</param> | ||
41 | /// <returns>A value in meters representing height. Can be negative. Value correlates with Z parameter in world coordinates</returns> | ||
42 | double this[int x, int y] | ||
43 | { | ||
44 | get; | ||
45 | set; | ||
46 | } | ||
47 | |||
48 | /// <summary> | ||
49 | /// The maximum height of the region (Y axis), exclusive. (eg Height = 256, max Y = 255). Minimum is always 0 inclusive. | ||
50 | /// </summary> | ||
36 | int Height { get; } | 51 | int Height { get; } |
52 | |||
53 | /// <summary> | ||
54 | /// The maximum width of the region (X axis), exclusive. (eg Width = 256, max X = 255). Minimum is always 0 inclusive. | ||
55 | /// </summary> | ||
37 | int Width { get; } | 56 | int Width { get; } |
38 | double Get(int x, int y); | ||
39 | void Set(int x, int y, double val); | ||
40 | } | 57 | } |
41 | } | 58 | } |