mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 04:05:42 +08:00
* 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.
This commit is contained in:
@@ -33,9 +33,26 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
|
||||
{
|
||||
public interface IHeightmap
|
||||
{
|
||||
/// <summary>
|
||||
/// Returns [or sets] the heightmap value at specified coordinates.
|
||||
/// </summary>
|
||||
/// <param name="x">X Coordinate</param>
|
||||
/// <param name="y">Y Coordinate</param>
|
||||
/// <returns>A value in meters representing height. Can be negative. Value correlates with Z parameter in world coordinates</returns>
|
||||
double this[int x, int y]
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The maximum height of the region (Y axis), exclusive. (eg Height = 256, max Y = 255). Minimum is always 0 inclusive.
|
||||
/// </summary>
|
||||
int Height { get; }
|
||||
|
||||
/// <summary>
|
||||
/// The maximum width of the region (X axis), exclusive. (eg Width = 256, max X = 255). Minimum is always 0 inclusive.
|
||||
/// </summary>
|
||||
int Width { get; }
|
||||
double Get(int x, int y);
|
||||
void Set(int x, int y, double val);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user