* Added osTerrainSetHeight(int x, int y, double val) to LSL commands
* Added osTerrainGetHeight(int x, int y) to LSL commandsafrisby
parent
87d55443d3
commit
8b6dd623bd
|
@ -2876,6 +2876,17 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler
|
||||||
//
|
//
|
||||||
// OpenSim functions
|
// OpenSim functions
|
||||||
//
|
//
|
||||||
|
public int osTerrainSetHeight(int x, int y, double val)
|
||||||
|
{
|
||||||
|
World.Terrain.Set(x, y, val);
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public double osTerrainGetHeight(int x, int y)
|
||||||
|
{
|
||||||
|
return World.Terrain.GetHeight(x, y);
|
||||||
|
}
|
||||||
|
|
||||||
public string osSetDynamicTextureURL(string dynamicID, string contentType, string url, string extraParams,
|
public string osSetDynamicTextureURL(string dynamicID, string contentType, string url, string extraParams,
|
||||||
int timer)
|
int timer)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1121,6 +1121,21 @@ namespace OpenSim.Region.Terrain
|
||||||
heightmap.seed = val;
|
heightmap.seed = val;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Sets a particular heightmap point to a specified value
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="x">X Coordinate</param>
|
||||||
|
/// <param name="y">Y Coordinate</param>
|
||||||
|
/// <param name="val">Value</param>
|
||||||
|
public void Set(int x, int y, double val)
|
||||||
|
{
|
||||||
|
lock (heightmap)
|
||||||
|
{
|
||||||
|
heightmap.Set(x, y, val);
|
||||||
|
}
|
||||||
|
tainted++;
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Raises land in a sphere around the specified coordinates
|
/// Raises land in a sphere around the specified coordinates
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -1115,6 +1115,7 @@
|
||||||
<Reference name="OpenSim.Framework"/>
|
<Reference name="OpenSim.Framework"/>
|
||||||
<Reference name="OpenSim.Framework.Console"/>
|
<Reference name="OpenSim.Framework.Console"/>
|
||||||
<Reference name="OpenSim.Region.ScriptEngine.Common"/>
|
<Reference name="OpenSim.Region.ScriptEngine.Common"/>
|
||||||
|
<Reference name="OpenSim.Region.Terrain.BasicTerrain"/>
|
||||||
<Reference name="Axiom.MathLib.dll" localCopy="false"/>
|
<Reference name="Axiom.MathLib.dll" localCopy="false"/>
|
||||||
<Reference name="Nini.dll" />
|
<Reference name="Nini.dll" />
|
||||||
<Files>
|
<Files>
|
||||||
|
|
Loading…
Reference in New Issue