* Applying mantis#1048 - Patch for osSetRegionWaterHeight()
parent
421730d972
commit
87e2793ca6
|
@ -111,7 +111,6 @@ namespace OpenSim.Region.ScriptEngine.Common
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public void Start(BuilIn_Commands LSL_Functions)
|
public void Start(BuilIn_Commands LSL_Functions)
|
||||||
{
|
{
|
||||||
m_LSL_Functions = LSL_Functions;
|
m_LSL_Functions = LSL_Functions;
|
||||||
|
@ -159,7 +158,10 @@ namespace OpenSim.Region.ScriptEngine.Common
|
||||||
{
|
{
|
||||||
return m_LSL_Functions.llSin(f);
|
return m_LSL_Functions.llSin(f);
|
||||||
}
|
}
|
||||||
|
public void osSetRegionWaterHeight(double height)
|
||||||
|
{
|
||||||
|
m_LSL_Functions.osSetRegionWaterHeight(height);
|
||||||
|
}
|
||||||
public double llCos(double f)
|
public double llCos(double f)
|
||||||
{
|
{
|
||||||
return m_LSL_Functions.llCos(f);
|
return m_LSL_Functions.llCos(f);
|
||||||
|
|
|
@ -166,6 +166,18 @@ namespace OpenSim.Region.ScriptEngine.Common
|
||||||
return LLUUID.Zero;
|
return LLUUID.Zero;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void osSetRegionWaterHeight(double height)
|
||||||
|
{
|
||||||
|
m_host.AddScriptLPS(1);
|
||||||
|
//Check to make sure that the script's owner is the estate manager/master
|
||||||
|
//World.PermissionsMngr.GenericEstatePermission(
|
||||||
|
if (World.PermissionsMngr.GenericEstatePermission(m_host.OwnerID))
|
||||||
|
{
|
||||||
|
World.EstateManager.setRegionSettings((float)height, 0f, 0f, false, 0.5f);
|
||||||
|
World.EstateManager.sendRegionInfoPacketToAll();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//These are the implementations of the various ll-functions used by the LSL scripts.
|
//These are the implementations of the various ll-functions used by the LSL scripts.
|
||||||
//starting out, we use the System.Math library for trig functions. - ckrinke 8-14-07
|
//starting out, we use the System.Math library for trig functions. - ckrinke 8-14-07
|
||||||
public double llSin(double f)
|
public double llSin(double f)
|
||||||
|
|
|
@ -639,5 +639,6 @@ namespace OpenSim.Region.ScriptEngine.Common
|
||||||
string llStringTrim(string src, int type);
|
string llStringTrim(string src, int type);
|
||||||
LSL_Types.list llGetObjectDetails(string id, LSL_Types.list args);
|
LSL_Types.list llGetObjectDetails(string id, LSL_Types.list args);
|
||||||
|
|
||||||
|
void osSetRegionWaterHeight(double height);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -530,5 +530,6 @@ namespace OpenSim.Region.ScriptEngine.Common
|
||||||
{
|
{
|
||||||
m_host.setScriptEvents(m_itemID, events);
|
m_host.setScriptEvents(m_itemID, events);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -61,5 +61,6 @@ namespace OpenSim.Region.ScriptEngine.Common
|
||||||
string osSetPenColour(string drawList, string colour);
|
string osSetPenColour(string drawList, string colour);
|
||||||
string osDrawImage(string drawList, int width, int height, string imageUrl);
|
string osDrawImage(string drawList, int width, int height, string imageUrl);
|
||||||
void osSetStateEvents(int events);
|
void osSetStateEvents(int events);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue