Linking osTerrainGetHeight, osTerrainSetHeight, and osRegionRestart to LSL_BaseClass to allow them to be called in LSL scripts.
parent
bf8ffc7a0c
commit
c2ca98519b
|
@ -636,5 +636,8 @@ namespace OpenSim.Region.ScriptEngine.Common
|
||||||
|
|
||||||
//OpenSim functions
|
//OpenSim functions
|
||||||
string osSetDynamicTextureURL(string dynamicID, string contentType, string url, string extraParams, int timer);
|
string osSetDynamicTextureURL(string dynamicID, string contentType, string url, string extraParams, int timer);
|
||||||
|
double osTerrainGetHeight(int x, int y);
|
||||||
|
int osTerrainSetHeight(int x, int y, double val);
|
||||||
|
int osRegionRestart(double seconds);
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -1819,6 +1819,21 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL
|
||||||
return m_LSL_Functions.osSetDynamicTextureURL(dynamicID, contentType, url, extraParams, timer);
|
return m_LSL_Functions.osSetDynamicTextureURL(dynamicID, contentType, url, extraParams, timer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public double osTerrainGetHeight(int x, int y)
|
||||||
|
{
|
||||||
|
return m_LSL_Functions.osTerrainGetHeight(x, y);
|
||||||
|
}
|
||||||
|
|
||||||
|
public int osTerrainSetHeight(int x, int y, double val)
|
||||||
|
{
|
||||||
|
return m_LSL_Functions.osTerrainSetHeight(x, y, val);
|
||||||
|
}
|
||||||
|
|
||||||
|
public int osRegionRestart(double seconds)
|
||||||
|
{
|
||||||
|
return m_LSL_Functions.osRegionRestart(seconds);
|
||||||
|
}
|
||||||
|
|
||||||
// LSL CONSTANTS
|
// LSL CONSTANTS
|
||||||
public const int TRUE = 1;
|
public const int TRUE = 1;
|
||||||
public const int FALSE = 0;
|
public const int FALSE = 0;
|
||||||
|
|
Loading…
Reference in New Issue