Change all LSL functions to return LSL types instead of base types.

Remove some unused osFunctions that were left in the LSL function
file from the separation way back when. Inline the osSetParcelMediaURL
code to get rid of the osFunction. Really need to add a way for one API
to call another.
0.6.0-stable
Melanie Thielker 2008-09-13 13:47:23 +00:00
parent 7f3a98b76d
commit 9222c5154e
2 changed files with 223 additions and 261 deletions

View File

@ -198,50 +198,39 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
} }
} }
public void osSetRegionWaterHeight(double height)
{
m_host.AddScriptLPS(1);
//Check to make sure that the script's owner is the estate manager/master
//World.Permissions.GenericEstatePermission(
if (World.ExternalChecks.ExternalChecksCanBeGodLike(m_host.OwnerID))
{
World.EventManager.TriggerRequestChangeWaterHeight((float)height);
}
}
//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 LSL_Types.LSLFloat llSin(double f)
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
return (double)Math.Sin(f); return (double)Math.Sin(f);
} }
public double llCos(double f) public LSL_Types.LSLFloat llCos(double f)
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
return (double)Math.Cos(f); return (double)Math.Cos(f);
} }
public double llTan(double f) public LSL_Types.LSLFloat llTan(double f)
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
return (double)Math.Tan(f); return (double)Math.Tan(f);
} }
public double llAtan2(double x, double y) public LSL_Types.LSLFloat llAtan2(double x, double y)
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
return (double)Math.Atan2(y, x); return (double)Math.Atan2(y, x);
} }
public double llSqrt(double f) public LSL_Types.LSLFloat llSqrt(double f)
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
return (double)Math.Sqrt(f); return (double)Math.Sqrt(f);
} }
public double llPow(double fbase, double fexponent) public LSL_Types.LSLFloat llPow(double fbase, double fexponent)
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
return (double)Math.Pow(fbase, fexponent); return (double)Math.Pow(fbase, fexponent);
@ -253,13 +242,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
return (int)Math.Abs(i); return (int)Math.Abs(i);
} }
public double llFabs(double f) public LSL_Types.LSLFloat llFabs(double f)
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
return (double)Math.Abs(f); return (double)Math.Abs(f);
} }
public double llFrand(double mag) public LSL_Types.LSLFloat llFrand(double mag)
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
lock (Util.RandomClass) lock (Util.RandomClass)
@ -288,7 +277,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
} }
//This next group are vector operations involving squaring and square root. ckrinke //This next group are vector operations involving squaring and square root. ckrinke
public double llVecMag(LSL_Types.Vector3 v) public LSL_Types.LSLFloat llVecMag(LSL_Types.Vector3 v)
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
return LSL_Types.Vector3.Mag(v); return LSL_Types.Vector3.Mag(v);
@ -305,7 +294,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
return nor; return nor;
} }
public double llVecDist(LSL_Types.Vector3 a, LSL_Types.Vector3 b) public LSL_Types.LSLFloat llVecDist(LSL_Types.Vector3 a, LSL_Types.Vector3 b)
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
double dx = a.x - b.x; double dx = a.x - b.x;
@ -677,7 +666,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
return SensedObject.Name; return SensedObject.Name;
} }
public string llDetectedName(int number) public LSL_Types.LSLString llDetectedName(int number)
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
DetectParams d = m_ScriptEngine.GetDetectParams(m_itemID, number); DetectParams d = m_ScriptEngine.GetDetectParams(m_itemID, number);
@ -686,7 +675,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
return d.Name; return d.Name;
} }
public string llDetectedKey(int number) public LSL_Types.LSLString llDetectedKey(int number)
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
DetectParams d = m_ScriptEngine.GetDetectParams(m_itemID, number); DetectParams d = m_ScriptEngine.GetDetectParams(m_itemID, number);
@ -695,7 +684,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
return d.Key.ToString(); return d.Key.ToString();
} }
public string llDetectedOwner(int number) public LSL_Types.LSLString llDetectedOwner(int number)
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
DetectParams d = m_ScriptEngine.GetDetectParams(m_itemID, number); DetectParams d = m_ScriptEngine.GetDetectParams(m_itemID, number);
@ -777,7 +766,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
throw new SelfDeleteException(); throw new SelfDeleteException();
} }
public double llGround(LSL_Types.Vector3 offset) public LSL_Types.LSLFloat llGround(LSL_Types.Vector3 offset)
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
int x = (int)(m_host.AbsolutePosition.X + offset.x); int x = (int)(m_host.AbsolutePosition.X + offset.x);
@ -785,7 +774,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
return World.GetLandHeight(x, y); return World.GetLandHeight(x, y);
} }
public double llCloud(LSL_Types.Vector3 offset) public LSL_Types.LSLFloat llCloud(LSL_Types.Vector3 offset)
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
return 0; return 0;
@ -1131,7 +1120,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
} }
} }
public double llGetAlpha(int face) public LSL_Types.LSLFloat llGetAlpha(int face)
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
Primitive.TextureEntry tex = m_host.Shape.Textures; Primitive.TextureEntry tex = m_host.Shape.Textures;
@ -1458,7 +1447,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
} }
} }
public string llGetTexture(int face) public LSL_Types.LSLString llGetTexture(int face)
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
Primitive.TextureEntry tex = m_host.Shape.Textures; Primitive.TextureEntry tex = m_host.Shape.Textures;
@ -1695,19 +1684,19 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
return new LSL_Types.Vector3(m_host.RotationalVelocity.X, m_host.RotationalVelocity.Y, m_host.RotationalVelocity.Z); return new LSL_Types.Vector3(m_host.RotationalVelocity.X, m_host.RotationalVelocity.Y, m_host.RotationalVelocity.Z);
} }
public double llGetTimeOfDay() public LSL_Types.LSLFloat llGetTimeOfDay()
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
return (double)(((DateTime.Now.TimeOfDay.TotalMilliseconds / 1000) % (3600 * 4)) * World.TimeDilation); return (double)(((DateTime.Now.TimeOfDay.TotalMilliseconds / 1000) % (3600 * 4)) * World.TimeDilation);
} }
public double llGetWallclock() public LSL_Types.LSLFloat llGetWallclock()
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
return DateTime.Now.TimeOfDay.TotalSeconds; return DateTime.Now.TimeOfDay.TotalSeconds;
} }
public double llGetTime() public LSL_Types.LSLFloat llGetTime()
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
TimeSpan ScriptTime = DateTime.Now - m_timer; TimeSpan ScriptTime = DateTime.Now - m_timer;
@ -1720,7 +1709,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
m_timer = DateTime.Now; m_timer = DateTime.Now;
} }
public double llGetAndResetTime() public LSL_Types.LSLFloat llGetAndResetTime()
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
TimeSpan ScriptTime = DateTime.Now - m_timer; TimeSpan ScriptTime = DateTime.Now - m_timer;
@ -1825,7 +1814,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
/// this more complicated than it might otherwise seem. /// this more complicated than it might otherwise seem.
/// </summary> /// </summary>
public string llGetSubString(string src, int start, int end) public LSL_Types.LSLString llGetSubString(string src, int start, int end)
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
@ -1921,7 +1910,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
/// i.e. end < start. /// i.e. end < start.
/// </summary> /// </summary>
public string llDeleteSubString(string src, int start, int end) public LSL_Types.LSLString llDeleteSubString(string src, int start, int end)
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
@ -2004,7 +1993,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
/// string bound, with the result being a concatenation. /// string bound, with the result being a concatenation.
/// </summary> /// </summary>
public string llInsertString(string dest, int index, string src) public LSL_Types.LSLString llInsertString(string dest, int index, string src)
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
@ -2042,13 +2031,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
} }
public string llToUpper(string src) public LSL_Types.LSLString llToUpper(string src)
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
return src.ToUpper(); return src.ToUpper();
} }
public string llToLower(string src) public LSL_Types.LSLString llToLower(string src)
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
return src.ToLower(); return src.ToLower();
@ -2221,7 +2210,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
Thread.Sleep((int)(sec * 1000)); Thread.Sleep((int)(sec * 1000));
} }
public double llGetMass() public LSL_Types.LSLFloat llGetMass()
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
return m_host.GetMass(); return m_host.GetMass();
@ -2308,7 +2297,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
Deprecated("llReleaseCamera"); Deprecated("llReleaseCamera");
} }
public string llGetOwner() public LSL_Types.LSLString llGetOwner()
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
@ -2398,7 +2387,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
} }
public string llGetKey() public LSL_Types.LSLString llGetKey()
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
return m_host.UUID.ToString(); return m_host.UUID.ToString();
@ -2673,7 +2662,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
new DetectParams[0])); new DetectParams[0]));
} }
public string llGetPermissionsKey() public LSL_Types.LSLString llGetPermissionsKey()
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
@ -2857,7 +2846,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
NotImplemented("llBreakAllLinks"); NotImplemented("llBreakAllLinks");
} }
public string llGetLinkKey(int linknum) public LSL_Types.LSLString llGetLinkKey(int linknum)
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
SceneObjectPart part = m_host.ParentGroup.GetLinkNumPart(linknum); SceneObjectPart part = m_host.ParentGroup.GetLinkNumPart(linknum);
@ -2871,7 +2860,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
} }
} }
public string llGetLinkName(int linknum) public LSL_Types.LSLString llGetLinkName(int linknum)
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
SceneObjectPart part = m_host.ParentGroup.GetLinkNumPart(linknum); SceneObjectPart part = m_host.ParentGroup.GetLinkNumPart(linknum);
@ -2899,7 +2888,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
return count; return count;
} }
public string llGetInventoryName(int type, int number) public LSL_Types.LSLString llGetInventoryName(int type, int number)
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
ArrayList keys = new ArrayList(); ArrayList keys = new ArrayList();
@ -2941,7 +2930,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
} }
} }
public double llGetEnergy() public LSL_Types.LSLFloat llGetEnergy()
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
// TODO: figure out real energy value // TODO: figure out real energy value
@ -3013,7 +3002,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
m_host.ParentGroup.HasGroupChanged = true; m_host.ParentGroup.HasGroupChanged = true;
} }
public double llWater(LSL_Types.Vector3 offset) public LSL_Types.LSLFloat llWater(LSL_Types.Vector3 offset)
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
return World.RegionInfo.RegionSettings.WaterHeight; return World.RegionInfo.RegionSettings.WaterHeight;
@ -3025,7 +3014,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
NotImplemented("llPassTouches"); NotImplemented("llPassTouches");
} }
public string llRequestAgentData(string id, int data) public LSL_Types.LSLString llRequestAgentData(string id, int data)
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
@ -3080,7 +3069,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
return tid.ToString(); return tid.ToString();
} }
public string llRequestInventoryData(string name) public LSL_Types.LSLString llRequestInventoryData(string name)
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
@ -3161,7 +3150,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
NotImplemented("llCollisionSprite"); NotImplemented("llCollisionSprite");
} }
public string llGetAnimation(string id) public LSL_Types.LSLString llGetAnimation(string id)
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
NotImplemented("llGetAnimation"); NotImplemented("llGetAnimation");
@ -3365,7 +3354,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
NotImplemented("llPassCollisions"); NotImplemented("llPassCollisions");
} }
public string llGetScriptName() public LSL_Types.LSLString llGetScriptName()
{ {
string result = String.Empty; string result = String.Empty;
@ -3589,7 +3578,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
// Returns the angle of a quaternion (see llRot2Axis for the axis) // Returns the angle of a quaternion (see llRot2Axis for the axis)
public double llRot2Angle(LSL_Types.Quaternion rot) public LSL_Types.LSLFloat llRot2Angle(LSL_Types.Quaternion rot)
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
@ -3612,27 +3601,27 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
// NotImplemented("llRot2Angle"); // NotImplemented("llRot2Angle");
} }
public double llAcos(double val) public LSL_Types.LSLFloat llAcos(double val)
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
return (double)Math.Acos(val); return (double)Math.Acos(val);
} }
public double llAsin(double val) public LSL_Types.LSLFloat llAsin(double val)
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
return (double)Math.Asin(val); return (double)Math.Asin(val);
} }
// Xantor 30/apr/2008 // Xantor 30/apr/2008
public double llAngleBetween(LSL_Types.Quaternion a, LSL_Types.Quaternion b) public LSL_Types.LSLFloat llAngleBetween(LSL_Types.Quaternion a, LSL_Types.Quaternion b)
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
return (double) Math.Acos(a.x * b.x + a.y * b.y + a.z * b.z + a.s * b.s) * 2; return (double) Math.Acos(a.x * b.x + a.y * b.y + a.z * b.z + a.s * b.s) * 2;
} }
public string llGetInventoryKey(string name) public LSL_Types.LSLString llGetInventoryKey(string name)
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
foreach (KeyValuePair<UUID, TaskInventoryItem> inv in m_host.TaskInventory) foreach (KeyValuePair<UUID, TaskInventoryItem> inv in m_host.TaskInventory)
@ -3709,7 +3698,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
return scale; return scale;
} }
public double llGetTextureRot(int face) public LSL_Types.LSLFloat llGetTextureRot(int face)
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
Primitive.TextureEntry tex = m_host.Shape.Textures; Primitive.TextureEntry tex = m_host.Shape.Textures;
@ -3726,7 +3715,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
return source.IndexOf(pattern); return source.IndexOf(pattern);
} }
public string llGetOwnerKey(string id) public LSL_Types.LSLString llGetOwnerKey(string id)
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
UUID key = new UUID(); UUID key = new UUID();
@ -3799,27 +3788,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
} }
} }
public double osList2Double(LSL_Types.list src, int index) public LSL_Types.LSLFloat llList2Float(LSL_Types.list src, int index)
{
m_host.AddScriptLPS(1);
if (index < 0)
{
index = src.Length + index;
}
if (index >= src.Length)
{
return 0.0;
}
if (src.Data[index] is LSL_Types.LSLInteger)
return Convert.ToDouble(((LSL_Types.LSLInteger) src.Data[index]).value);
else if (src.Data[index] is LSL_Types.LSLFloat)
return Convert.ToDouble(((LSL_Types.LSLFloat) src.Data[index]).value);
else if (src.Data[index] is LSL_Types.LSLString)
return Convert.ToDouble(((LSL_Types.LSLString) src.Data[index]).m_string);
return Convert.ToDouble(src.Data[index]);
}
public double llList2Float(LSL_Types.list src, int index)
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
if (index < 0) if (index < 0)
@ -3846,7 +3815,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
} }
} }
public string llList2String(LSL_Types.list src, int index) public LSL_Types.LSLString llList2String(LSL_Types.list src, int index)
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
if (index < 0) if (index < 0)
@ -3860,7 +3829,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
return src.Data[index].ToString(); return src.Data[index].ToString();
} }
public string llList2Key(LSL_Types.list src, int index) public LSL_Types.LSLString llList2Key(LSL_Types.list src, int index)
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
if (index < 0) if (index < 0)
@ -3972,7 +3941,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
/// each comma. /// each comma.
/// </summary> /// </summary>
public string llList2CSV(LSL_Types.list src) public LSL_Types.LSLString llList2CSV(LSL_Types.list src)
{ {
string ret = String.Empty; string ret = String.Empty;
@ -4302,7 +4271,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
} }
public string llGetObjectName() public LSL_Types.LSLString llGetObjectName()
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
return m_host.Name!=null?m_host.Name:String.Empty; return m_host.Name!=null?m_host.Name:String.Empty;
@ -4314,7 +4283,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
m_host.Name = name!=null?name:String.Empty; m_host.Name = name!=null?name:String.Empty;
} }
public string llGetDate() public LSL_Types.LSLString llGetDate()
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
DateTime date = DateTime.Now.ToUniversalTime(); DateTime date = DateTime.Now.ToUniversalTime();
@ -4355,7 +4324,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
m_host.SoundRadius = radius; m_host.SoundRadius = radius;
} }
public string llKey2Name(string id) public LSL_Types.LSLString llKey2Name(string id)
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
UUID key = new UUID(); UUID key = new UUID();
@ -4504,7 +4473,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
return 0; return 0;
} }
public string llGetLandOwnerAt(LSL_Types.Vector3 pos) public LSL_Types.LSLString llGetLandOwnerAt(LSL_Types.Vector3 pos)
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
return World.GetLandOwner((float)pos.x, (float)pos.y).ToString(); return World.GetLandOwner((float)pos.x, (float)pos.y).ToString();
@ -4632,19 +4601,19 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
return 0; return 0;
} }
public string llGetRegionName() public LSL_Types.LSLString llGetRegionName()
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
return World.RegionInfo.RegionName; return World.RegionInfo.RegionName;
} }
public double llGetRegionTimeDilation() public LSL_Types.LSLFloat llGetRegionTimeDilation()
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
return (double)World.TimeDilation; return (double)World.TimeDilation;
} }
public double llGetRegionFPS() public LSL_Types.LSLFloat llGetRegionFPS()
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
//TODO: return actual FPS //TODO: return actual FPS
@ -4959,7 +4928,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
m_host.SitTargetOrientation = new Quaternion((float)rot.x, (float)rot.y, (float)rot.z, (float)rot.s); m_host.SitTargetOrientation = new Quaternion((float)rot.x, (float)rot.y, (float)rot.z, (float)rot.s);
} }
public string llAvatarOnSitTarget() public LSL_Types.LSLString llAvatarOnSitTarget()
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
return m_host.GetAvatarOnSitTarget().ToString(); return m_host.GetAvatarOnSitTarget().ToString();
@ -5008,7 +4977,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
m_host.SetCameraAtOffset(new Vector3((float)offset.x, (float)offset.y, (float)offset.z)); m_host.SetCameraAtOffset(new Vector3((float)offset.x, (float)offset.y, (float)offset.z));
} }
public string llDumpList2String(LSL_Types.list src, string seperator) public LSL_Types.LSLString llDumpList2String(LSL_Types.list src, string seperator)
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
if (src.Length == 0) if (src.Length == 0)
@ -5188,7 +5157,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
// ScriptSleep(1000); // ScriptSleep(1000);
} }
public string llSendRemoteData(string channel, string dest, int idata, string sdata) public LSL_Types.LSLString llSendRemoteData(string channel, string dest, int idata, string sdata)
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
IXMLRPC xmlrpcMod = m_ScriptEngine.World.RequestModuleInterface<IXMLRPC>(); IXMLRPC xmlrpcMod = m_ScriptEngine.World.RequestModuleInterface<IXMLRPC>();
@ -5212,7 +5181,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
// ScriptSleep(1000); // ScriptSleep(1000);
} }
public string llMD5String(string src, int nonce) public LSL_Types.LSLString llMD5String(string src, int nonce)
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
return Util.Md5Hash(src + ":" + nonce.ToString()); return Util.Md5Hash(src + ":" + nonce.ToString());
@ -5866,7 +5835,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
} }
} }
public string llStringToBase64(string str) public LSL_Types.LSLString llStringToBase64(string str)
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
try try
@ -5882,7 +5851,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
} }
} }
public string llBase64ToString(string str) public LSL_Types.LSLString llBase64ToString(string str)
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
UTF8Encoding encoder = new UTF8Encoding(); UTF8Encoding encoder = new UTF8Encoding();
@ -5915,13 +5884,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
NotImplemented("llRemoteDataSetRegion"); NotImplemented("llRemoteDataSetRegion");
} }
public double llLog10(double val) public LSL_Types.LSLFloat llLog10(double val)
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
return (double)Math.Log10(val); return (double)Math.Log10(val);
} }
public double llLog(double val) public LSL_Types.LSLFloat llLog(double val)
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
return (double)Math.Log(val); return (double)Math.Log(val);
@ -5958,24 +5927,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
// ScriptSleep(2000); // ScriptSleep(2000);
} }
public void osSetParcelMediaURL(string url)
{
m_host.AddScriptLPS(1);
UUID landowner = World.GetLandOwner(m_host.AbsolutePosition.X, m_host.AbsolutePosition.Y);
if (landowner == UUID.Zero)
{
return;
}
if (landowner != m_host.ObjectOwner)
{
return;
}
World.SetLandMediaURL(m_host.AbsolutePosition.X, m_host.AbsolutePosition.Y, url);
}
public LSL_Types.Vector3 llGetRootPosition() public LSL_Types.Vector3 llGetRootPosition()
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
@ -5988,7 +5939,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
return new LSL_Types.Quaternion(m_host.ParentGroup.GroupRotation.X, m_host.ParentGroup.GroupRotation.Y, m_host.ParentGroup.GroupRotation.Z, m_host.ParentGroup.GroupRotation.W); return new LSL_Types.Quaternion(m_host.ParentGroup.GroupRotation.X, m_host.ParentGroup.GroupRotation.Y, m_host.ParentGroup.GroupRotation.Z, m_host.ParentGroup.GroupRotation.W);
} }
public string llGetObjectDesc() public LSL_Types.LSLString llGetObjectDesc()
{ {
return m_host.Description!=null?m_host.Description:String.Empty; return m_host.Description!=null?m_host.Description:String.Empty;
} }
@ -5999,13 +5950,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
m_host.Description = desc!=null?desc:String.Empty; m_host.Description = desc!=null?desc:String.Empty;
} }
public string llGetCreator() public LSL_Types.LSLString llGetCreator()
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
return m_host.ObjectCreator.ToString(); return m_host.ObjectCreator.ToString();
} }
public string llGetTimestamp() public LSL_Types.LSLString llGetTimestamp()
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
return DateTime.Now.ToUniversalTime().ToString("yyyy-MM-ddTHH:mm:ss.fffffffZ"); return DateTime.Now.ToUniversalTime().ToString("yyyy-MM-ddTHH:mm:ss.fffffffZ");
@ -6480,7 +6431,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
// characters are padded with "=". // characters are padded with "=".
// </returns> // </returns>
public string llIntegerToBase64(int number) public LSL_Types.LSLString llIntegerToBase64(int number)
{ {
// uninitialized string // uninitialized string
@ -6603,13 +6554,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
return number; return number;
} }
public double llGetGMTclock() public LSL_Types.LSLFloat llGetGMTclock()
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
return DateTime.UtcNow.TimeOfDay.TotalSeconds; return DateTime.UtcNow.TimeOfDay.TotalSeconds;
} }
public string llGetSimulatorHostname() public LSL_Types.LSLString llGetSimulatorHostname()
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
return System.Environment.MachineName; return System.Environment.MachineName;
@ -6902,7 +6853,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
NotImplemented("llSetInventoryPermMask"); NotImplemented("llSetInventoryPermMask");
} }
public string llGetInventoryCreator(string item) public LSL_Types.LSLString llGetInventoryCreator(string item)
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
foreach (KeyValuePair<UUID, TaskInventoryItem> inv in m_host.TaskInventory) foreach (KeyValuePair<UUID, TaskInventoryItem> inv in m_host.TaskInventory)
@ -6925,7 +6876,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
// wComm.DeliverMessage(ChatTypeEnum.Owner, 0, m_host.Name, m_host.UUID, msg); // wComm.DeliverMessage(ChatTypeEnum.Owner, 0, m_host.Name, m_host.UUID, msg);
} }
public string llRequestSimulatorData(string simulator, int data) public LSL_Types.LSLString llRequestSimulatorData(string simulator, int data)
{ {
try try
{ {
@ -6999,7 +6950,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
m_host.SetForceMouselook(mouselook != 0); m_host.SetForceMouselook(mouselook != 0);
} }
public double llGetObjectMass(string id) public LSL_Types.LSLFloat llGetObjectMass(string id)
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
UUID key = new UUID(); UUID key = new UUID();
@ -7159,8 +7110,19 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
{ {
if (commandList.Data[i + 1] is string) if (commandList.Data[i + 1] is string)
{ {
//Set the new media URL only if the user is the owner of the land UUID landowner = World.GetLandOwner(m_host.AbsolutePosition.X, m_host.AbsolutePosition.Y);
osSetParcelMediaURL(commandList.Data[i + 1].ToString());
if (landowner == UUID.Zero)
{
return;
}
if (landowner != m_host.ObjectOwner)
{
return;
}
World.SetLandMediaURL(m_host.AbsolutePosition.X, m_host.AbsolutePosition.Y, (string)commandList.GetLSLStringItem(i + 1));
List<ScenePresence> scenePresenceList = World.GetScenePresences(); List<ScenePresence> scenePresenceList = World.GetScenePresences();
LandData landData = World.GetLandData(m_host.AbsolutePosition.X, m_host.AbsolutePosition.Y); LandData landData = World.GetLandData(m_host.AbsolutePosition.X, m_host.AbsolutePosition.Y);
@ -7312,7 +7274,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
// ScriptSleep(20000); // ScriptSleep(20000);
} }
public string llEscapeURL(string url) public LSL_Types.LSLString llEscapeURL(string url)
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
try try
@ -7325,7 +7287,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
} }
} }
public string llUnescapeURL(string url) public LSL_Types.LSLString llUnescapeURL(string url)
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
try try
@ -7484,7 +7446,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
presence.ControllingClient.SendClearFollowCamProperties(objectID); presence.ControllingClient.SendClearFollowCamProperties(objectID);
} }
public double llListStatistics(int operation, LSL_Types.list src) public LSL_Types.LSLFloat llListStatistics(int operation, LSL_Types.list src)
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
LSL_Types.list nums = LSL_Types.list.ToDoubleList(src); LSL_Types.list nums = LSL_Types.list.ToDoubleList(src);
@ -7538,7 +7500,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
return (int)estate.GetRegionFlags(); return (int)estate.GetRegionFlags();
} }
public string llXorBase64StringsCorrect(string str1, string str2) public LSL_Types.LSLString llXorBase64StringsCorrect(string str1, string str2)
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
string ret = String.Empty; string ret = String.Empty;
@ -7556,7 +7518,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
return llStringToBase64(ret); return llStringToBase64(ret);
} }
public string llHTTPRequest(string url, LSL_Types.list parameters, string body) public LSL_Types.LSLString llHTTPRequest(string url, LSL_Types.list parameters, string body)
{ {
// Partial implementation: support for parameter flags needed // Partial implementation: support for parameter flags needed
// see http://wiki.secondlife.com/wiki/LlHTTPRequest // see http://wiki.secondlife.com/wiki/LlHTTPRequest
@ -7809,7 +7771,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
// ScriptSleep(200); // ScriptSleep(200);
} }
public string llStringTrim(string src, int type) public LSL_Types.LSLString llStringTrim(string src, int type)
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
if (type == (int)ScriptBaseClass.STRING_TRIM_HEAD) { return src.TrimStart(); } if (type == (int)ScriptBaseClass.STRING_TRIM_HEAD) { return src.TrimStart(); }
@ -7940,7 +7902,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
World.AssetCache.GetAsset(assetID, delegate(UUID i, AssetBase a) { cb(i, a); }, false); World.AssetCache.GetAsset(assetID, delegate(UUID i, AssetBase a) { cb(i, a); }, false);
} }
public string llGetNumberOfNotecardLines(string name) public LSL_Types.LSLString llGetNumberOfNotecardLines(string name)
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
@ -7978,7 +7940,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
return UUID.Zero.ToString(); return UUID.Zero.ToString();
} }
public string llGetNotecardLine(string name, int line) public LSL_Types.LSLString llGetNotecardLine(string name, int line)
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);

View File

@ -36,21 +36,21 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
{ {
void state(string newState); void state(string newState);
void llSay(int channelID, string text); void llSay(int channelID, string text);
double llSin(double f); LSL_Types.LSLFloat llSin(double f);
double llCos(double f); LSL_Types.LSLFloat llCos(double f);
double llTan(double f); LSL_Types.LSLFloat llTan(double f);
double llAtan2(double x, double y); LSL_Types.LSLFloat llAtan2(double x, double y);
double llSqrt(double f); LSL_Types.LSLFloat llSqrt(double f);
double llPow(double fbase, double fexponent); LSL_Types.LSLFloat llPow(double fbase, double fexponent);
LSL_Types.LSLInteger llAbs(int i); LSL_Types.LSLInteger llAbs(int i);
double llFabs(double f); LSL_Types.LSLFloat llFabs(double f);
double llFrand(double mag); LSL_Types.LSLFloat llFrand(double mag);
LSL_Types.LSLInteger llFloor(double f); LSL_Types.LSLInteger llFloor(double f);
LSL_Types.LSLInteger llCeil(double f); LSL_Types.LSLInteger llCeil(double f);
LSL_Types.LSLInteger llRound(double f); LSL_Types.LSLInteger llRound(double f);
double llVecMag(LSL_Types.Vector3 v); LSL_Types.LSLFloat llVecMag(LSL_Types.Vector3 v);
LSL_Types.Vector3 llVecNorm(LSL_Types.Vector3 v); LSL_Types.Vector3 llVecNorm(LSL_Types.Vector3 v);
double llVecDist(LSL_Types.Vector3 a, LSL_Types.Vector3 b); LSL_Types.LSLFloat llVecDist(LSL_Types.Vector3 a, LSL_Types.Vector3 b);
LSL_Types.Vector3 llRot2Euler(LSL_Types.Quaternion r); LSL_Types.Vector3 llRot2Euler(LSL_Types.Quaternion r);
LSL_Types.Quaternion llEuler2Rot(LSL_Types.Vector3 v); LSL_Types.Quaternion llEuler2Rot(LSL_Types.Vector3 v);
LSL_Types.Quaternion llAxes2Rot(LSL_Types.Vector3 fwd, LSL_Types.Vector3 left, LSL_Types.Vector3 up); LSL_Types.Quaternion llAxes2Rot(LSL_Types.Vector3 fwd, LSL_Types.Vector3 left, LSL_Types.Vector3 up);
@ -68,9 +68,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
void llSensor(string name, string id, int type, double range, double arc); void llSensor(string name, string id, int type, double range, double arc);
void llSensorRepeat(string name, string id, int type, double range, double arc, double rate); void llSensorRepeat(string name, string id, int type, double range, double arc, double rate);
void llSensorRemove(); void llSensorRemove();
string llDetectedName(int number); LSL_Types.LSLString llDetectedName(int number);
string llDetectedKey(int number); LSL_Types.LSLString llDetectedKey(int number);
string llDetectedOwner(int number); LSL_Types.LSLString llDetectedOwner(int number);
LSL_Types.LSLInteger llDetectedType(int number); LSL_Types.LSLInteger llDetectedType(int number);
LSL_Types.Vector3 llDetectedPos(int number); LSL_Types.Vector3 llDetectedPos(int number);
LSL_Types.Vector3 llDetectedVel(int number); LSL_Types.Vector3 llDetectedVel(int number);
@ -79,22 +79,22 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
LSL_Types.LSLInteger llDetectedGroup(int number); LSL_Types.LSLInteger llDetectedGroup(int number);
LSL_Types.LSLInteger llDetectedLinkNumber(int number); LSL_Types.LSLInteger llDetectedLinkNumber(int number);
void llDie(); void llDie();
double llGround(LSL_Types.Vector3 offset); LSL_Types.LSLFloat llGround(LSL_Types.Vector3 offset);
double llCloud(LSL_Types.Vector3 offset); LSL_Types.LSLFloat llCloud(LSL_Types.Vector3 offset);
LSL_Types.Vector3 llWind(LSL_Types.Vector3 offset); LSL_Types.Vector3 llWind(LSL_Types.Vector3 offset);
void llSetStatus(int status, int value); void llSetStatus(int status, int value);
LSL_Types.LSLInteger llGetStatus(int status); LSL_Types.LSLInteger llGetStatus(int status);
void llSetScale(LSL_Types.Vector3 scale); void llSetScale(LSL_Types.Vector3 scale);
LSL_Types.Vector3 llGetScale(); LSL_Types.Vector3 llGetScale();
void llSetColor(LSL_Types.Vector3 color, int face); void llSetColor(LSL_Types.Vector3 color, int face);
double llGetAlpha(int face); LSL_Types.LSLFloat llGetAlpha(int face);
void llSetAlpha(double alpha, int face); void llSetAlpha(double alpha, int face);
LSL_Types.Vector3 llGetColor(int face); LSL_Types.Vector3 llGetColor(int face);
void llSetTexture(string texture, int face); void llSetTexture(string texture, int face);
void llScaleTexture(double u, double v, int face); void llScaleTexture(double u, double v, int face);
void llOffsetTexture(double u, double v, int face); void llOffsetTexture(double u, double v, int face);
void llRotateTexture(double rotation, int face); void llRotateTexture(double rotation, int face);
string llGetTexture(int face); LSL_Types.LSLString llGetTexture(int face);
void llSetPos(LSL_Types.Vector3 pos); void llSetPos(LSL_Types.Vector3 pos);
//wiki: vector llGetPos() //wiki: vector llGetPos()
@ -139,16 +139,16 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
LSL_Types.Vector3 llGetAccel(); LSL_Types.Vector3 llGetAccel();
//wiki: vector llGetOmega() //wiki: vector llGetOmega()
LSL_Types.Vector3 llGetOmega(); LSL_Types.Vector3 llGetOmega();
//wiki: double llGetTimeOfDay() //wiki: LSL_Types.LSLFloat llGetTimeOfDay()
double llGetTimeOfDay(); LSL_Types.LSLFloat llGetTimeOfDay();
//wiki: double llGetWallclock() //wiki: LSL_Types.LSLFloat llGetWallclock()
double llGetWallclock(); LSL_Types.LSLFloat llGetWallclock();
//wiki: double llGetTime() //wiki: LSL_Types.LSLFloat llGetTime()
double llGetTime(); LSL_Types.LSLFloat llGetTime();
//wiki: llResetTime() //wiki: llResetTime()
void llResetTime(); void llResetTime();
//wiki: double llGetAndResetTime() //wiki: LSL_Types.LSLFloat llGetAndResetTime()
double llGetAndResetTime(); LSL_Types.LSLFloat llGetAndResetTime();
//wiki (deprecated) llSound(string sound, double volume, integer queue, integer loop) //wiki (deprecated) llSound(string sound, double volume, integer queue, integer loop)
void llSound(); void llSound();
//wiki: llPlaySound(string sound, double volume) //wiki: llPlaySound(string sound, double volume)
@ -167,16 +167,16 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
void llStopSound(); void llStopSound();
//wiki: llPreloadSound(string sound) //wiki: llPreloadSound(string sound)
void llPreloadSound(string sound); void llPreloadSound(string sound);
//wiki: string llGetSubString(string src, integer start, integer end) //wiki: LSL_Types.LSLString llGetSubString(string src, integer start, integer end)
string llGetSubString(string src, int start, int end); LSL_Types.LSLString llGetSubString(string src, int start, int end);
//wiki: string llDeleteSubString(string src, integer start, integer end) //wiki: LSL_Types.LSLString llDeleteSubString(string src, integer start, integer end)
string llDeleteSubString(string src, int start, int end); LSL_Types.LSLString llDeleteSubString(string src, int start, int end);
//wiki string llInsertString(string dst, integer position, string src) //wiki LSL_Types.LSLString llInsertString(string dst, integer position, string src)
string llInsertString(string dst, int position, string src); LSL_Types.LSLString llInsertString(string dst, int position, string src);
//wiki: string llToUpper(string source) //wiki: LSL_Types.LSLString llToUpper(string source)
string llToUpper(string source); LSL_Types.LSLString llToUpper(string source);
//wiki: string llToLower(string source) //wiki: LSL_Types.LSLString llToLower(string source)
string llToLower(string source); LSL_Types.LSLString llToLower(string source);
//wiki: integer llGiveMoney(key destination, integer amount) //wiki: integer llGiveMoney(key destination, integer amount)
LSL_Types.LSLInteger llGiveMoney(string destination, int amount); LSL_Types.LSLInteger llGiveMoney(string destination, int amount);
//wiki: (deprecated) //wiki: (deprecated)
@ -197,8 +197,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
void llSetTimerEvent(double sec); void llSetTimerEvent(double sec);
//wiki: llSleep(double sec) //wiki: llSleep(double sec)
void llSleep(double sec); void llSleep(double sec);
//wiki: double llGetMass() //wiki: LSL_Types.LSLFloat llGetMass()
double llGetMass(); LSL_Types.LSLFloat llGetMass();
//wiki: llCollisionFilter(string name, key id, integer accept) //wiki: llCollisionFilter(string name, key id, integer accept)
void llCollisionFilter(string name, string id, int accept); void llCollisionFilter(string name, string id, int accept);
//wiki: llTakeControls(integer controls, integer accept, integer pass_on) //wiki: llTakeControls(integer controls, integer accept, integer pass_on)
@ -214,7 +214,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
//wiki: (deprecated) llReleaseCamera(key avatar) //wiki: (deprecated) llReleaseCamera(key avatar)
void llReleaseCamera(string avatar); void llReleaseCamera(string avatar);
//wiki: key llGetOwner() //wiki: key llGetOwner()
string llGetOwner(); LSL_Types.LSLString llGetOwner();
//wiki: llInstantMessage(key user, string message) //wiki: llInstantMessage(key user, string message)
void llInstantMessage(string user, string message); void llInstantMessage(string user, string message);
//wiki: llEmail(string address, string subject, string message) //wiki: llEmail(string address, string subject, string message)
@ -222,7 +222,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
//wiki: llGetNextEmail(string address, string subject) //wiki: llGetNextEmail(string address, string subject)
void llGetNextEmail(string address, string subject); void llGetNextEmail(string address, string subject);
//wiki: key llGetKey() //wiki: key llGetKey()
string llGetKey(); LSL_Types.LSLString llGetKey();
//wiki: llSetBuoyancy(double buoyancy) //wiki: llSetBuoyancy(double buoyancy)
void llSetBuoyancy(double buoyancy); void llSetBuoyancy(double buoyancy);
//wiki: llSetHoverHeight(double height, integer water, double tau) //wiki: llSetHoverHeight(double height, integer water, double tau)
@ -254,7 +254,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
//wiki: llRequestPermissions(key agent, integer perm) //wiki: llRequestPermissions(key agent, integer perm)
void llRequestPermissions(string agent, int perm); void llRequestPermissions(string agent, int perm);
//wiki: key llGetPermissionsKey() //wiki: key llGetPermissionsKey()
string llGetPermissionsKey(); LSL_Types.LSLString llGetPermissionsKey();
//wiki: integer llGetPermissions() //wiki: integer llGetPermissions()
LSL_Types.LSLInteger llGetPermissions(); LSL_Types.LSLInteger llGetPermissions();
//wiki integer llGetLinkNumber() //wiki integer llGetLinkNumber()
@ -268,31 +268,31 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
//wiki: llBreakAllLinks() //wiki: llBreakAllLinks()
void llBreakAllLinks(); void llBreakAllLinks();
//wiki: key llGetLinkKey(integer linknum) //wiki: key llGetLinkKey(integer linknum)
string llGetLinkKey(int linknum); LSL_Types.LSLString llGetLinkKey(int linknum);
//wiki: llGetLinkName(integer linknum) //wiki: llGetLinkName(integer linknum)
string llGetLinkName(int linknum); LSL_Types.LSLString llGetLinkName(int linknum);
//wiki: integer llGetInventoryNumber(integer type) //wiki: integer llGetInventoryNumber(integer type)
LSL_Types.LSLInteger llGetInventoryNumber(int type); LSL_Types.LSLInteger llGetInventoryNumber(int type);
//wiki: string llGetInventoryName(integer type, integer number) //wiki: LSL_Types.LSLString llGetInventoryName(integer type, integer number)
string llGetInventoryName(int type, int number); LSL_Types.LSLString llGetInventoryName(int type, int number);
//wiki: llSetScriptState(string name, integer run) //wiki: llSetScriptState(string name, integer run)
void llSetScriptState(string name, int run); void llSetScriptState(string name, int run);
//wiki: double llGetEnergy() //wiki: LSL_Types.LSLFloat llGetEnergy()
double llGetEnergy(); LSL_Types.LSLFloat llGetEnergy();
//wiki: llGiveInventory(key destination, string inventory) //wiki: llGiveInventory(key destination, string inventory)
void llGiveInventory(string destination, string inventory); void llGiveInventory(string destination, string inventory);
//wiki: llRemoveInventory(string item) //wiki: llRemoveInventory(string item)
void llRemoveInventory(string item); void llRemoveInventory(string item);
//wiki: llSetText(string text, vector color, double alpha) //wiki: llSetText(string text, vector color, double alpha)
void llSetText(string text, LSL_Types.Vector3 color, double alpha); void llSetText(string text, LSL_Types.Vector3 color, double alpha);
//wiki: double llWater(vector offset) //wiki: LSL_Types.LSLFloat llWater(vector offset)
double llWater(LSL_Types.Vector3 offset); LSL_Types.LSLFloat llWater(LSL_Types.Vector3 offset);
//wiki: llPassTouches(integer pass) //wiki: llPassTouches(integer pass)
void llPassTouches(int pass); void llPassTouches(int pass);
//wiki: key llRequestAgentData(key id, integer data) //wiki: key llRequestAgentData(key id, integer data)
string llRequestAgentData(string id, int data); LSL_Types.LSLString llRequestAgentData(string id, int data);
//wiki: key llRequestInventoryData(string name) //wiki: key llRequestInventoryData(string name)
string llRequestInventoryData(string name); LSL_Types.LSLString llRequestInventoryData(string name);
//wiki: llSetDamage(double damage) //wiki: llSetDamage(double damage)
void llSetDamage(double damage); void llSetDamage(double damage);
//wiki: llTeleportAgentHome(key agent) //wiki: llTeleportAgentHome(key agent)
@ -303,8 +303,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
void llCollisionSound(string impact_sound, double impact_volume); void llCollisionSound(string impact_sound, double impact_volume);
//wiki: llCollisionSprite(string impact_sprite) //wiki: llCollisionSprite(string impact_sprite)
void llCollisionSprite(string impact_sprite); void llCollisionSprite(string impact_sprite);
//wiki: string llGetAnimation(key id) //wiki: LSL_Types.LSLString llGetAnimation(key id)
string llGetAnimation(string id); LSL_Types.LSLString llGetAnimation(string id);
//wiki: llResetScript() //wiki: llResetScript()
void llResetScript(); void llResetScript();
//wiki: llMessageLinked(integer linknum, integer num, string str, key id) //wiki: llMessageLinked(integer linknum, integer num, string str, key id)
@ -313,24 +313,24 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
void llPushObject(string target, LSL_Types.Vector3 impulse, LSL_Types.Vector3 ang_impulse, int local); void llPushObject(string target, LSL_Types.Vector3 impulse, LSL_Types.Vector3 ang_impulse, int local);
//wiki: llPassCollisions(integer pass) //wiki: llPassCollisions(integer pass)
void llPassCollisions(int pass); void llPassCollisions(int pass);
//wiki: string llGetScriptName() //wiki: LSL_Types.LSLString llGetScriptName()
string llGetScriptName(); LSL_Types.LSLString llGetScriptName();
//wiki: integer llGetNumberOfSides() //wiki: integer llGetNumberOfSides()
LSL_Types.LSLInteger llGetNumberOfSides(); LSL_Types.LSLInteger llGetNumberOfSides();
//wiki: rotation llAxisAngle2Rot(vector axis, double angle) //wiki: rotation llAxisAngle2Rot(vector axis, double angle)
LSL_Types.Quaternion llAxisAngle2Rot(LSL_Types.Vector3 axis, double angle); LSL_Types.Quaternion llAxisAngle2Rot(LSL_Types.Vector3 axis, double angle);
//wiki: vector llRot2Axis(rotation rot) //wiki: vector llRot2Axis(rotation rot)
LSL_Types.Vector3 llRot2Axis(LSL_Types.Quaternion rot); LSL_Types.Vector3 llRot2Axis(LSL_Types.Quaternion rot);
//wiki: double llRot2Angle(rotation rot); //wiki: LSL_Types.LSLFloat llRot2Angle(rotation rot);
double llRot2Angle(LSL_Types.Quaternion rot); LSL_Types.LSLFloat llRot2Angle(LSL_Types.Quaternion rot);
//wiki: double llAcos(double val) //wiki: LSL_Types.LSLFloat llAcos(double val)
double llAcos(double val); LSL_Types.LSLFloat llAcos(double val);
//wiki: double llAsin(double val) //wiki: LSL_Types.LSLFloat llAsin(double val)
double llAsin(double val); LSL_Types.LSLFloat llAsin(double val);
//wiki: double llAngleBetween(rotation a, rotation b) //wiki: LSL_Types.LSLFloat llAngleBetween(rotation a, rotation b)
double llAngleBetween(LSL_Types.Quaternion a, LSL_Types.Quaternion b); LSL_Types.LSLFloat llAngleBetween(LSL_Types.Quaternion a, LSL_Types.Quaternion b);
//wiki: string llGetInventoryKey(string name) //wiki: LSL_Types.LSLString llGetInventoryKey(string name)
string llGetInventoryKey(string name); LSL_Types.LSLString llGetInventoryKey(string name);
//wiki: llAllowInventoryDrop(integer add) //wiki: llAllowInventoryDrop(integer add)
void llAllowInventoryDrop(int add); void llAllowInventoryDrop(int add);
//wiki: vector llGetSunDirection() //wiki: vector llGetSunDirection()
@ -339,12 +339,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
LSL_Types.Vector3 llGetTextureOffset(int face); LSL_Types.Vector3 llGetTextureOffset(int face);
//wiki: vector llGetTextureScale(integer side) //wiki: vector llGetTextureScale(integer side)
LSL_Types.Vector3 llGetTextureScale(int side); LSL_Types.Vector3 llGetTextureScale(int side);
//wiki: double llGetTextureRot(integer side) //wiki: LSL_Types.LSLFloat llGetTextureRot(integer side)
double llGetTextureRot(int side); LSL_Types.LSLFloat llGetTextureRot(int side);
//wiki: integer llSubStringIndex(string source, string pattern) //wiki: integer llSubStringIndex(string source, string pattern)
LSL_Types.LSLInteger llSubStringIndex(string source, string pattern); LSL_Types.LSLInteger llSubStringIndex(string source, string pattern);
//wiki: key llGetOwnerKey(key id) //wiki: key llGetOwnerKey(key id)
string llGetOwnerKey(string id); LSL_Types.LSLString llGetOwnerKey(string id);
//wiki: vector llGetCenterOfMass() //wiki: vector llGetCenterOfMass()
LSL_Types.Vector3 llGetCenterOfMass(); LSL_Types.Vector3 llGetCenterOfMass();
//wiki: list llListSort(list src, integer stride, integer ascending) //wiki: list llListSort(list src, integer stride, integer ascending)
@ -353,12 +353,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
LSL_Types.LSLInteger llGetListLength(LSL_Types.list src); LSL_Types.LSLInteger llGetListLength(LSL_Types.list src);
//wiki: integer llList2Integer(list src, integer index) //wiki: integer llList2Integer(list src, integer index)
LSL_Types.LSLInteger llList2Integer(LSL_Types.list src, int index); LSL_Types.LSLInteger llList2Integer(LSL_Types.list src, int index);
//wiki: double llList2double(list src, integer index) //wiki: LSL_Types.LSLFloat llList2double(list src, integer index)
double llList2Float(LSL_Types.list src, int index); LSL_Types.LSLFloat llList2Float(LSL_Types.list src, int index);
//wiki: string llList2String(list src, integer index) //wiki: LSL_Types.LSLString llList2String(list src, integer index)
string llList2String(LSL_Types.list src, int index); LSL_Types.LSLString llList2String(LSL_Types.list src, int index);
//wiki: key llList2Key(list src, integer index) //wiki: key llList2Key(list src, integer index)
string llList2Key(LSL_Types.list src, int index); LSL_Types.LSLString llList2Key(LSL_Types.list src, int index);
//wiki: vector llList2Vector(list src, integer index) //wiki: vector llList2Vector(list src, integer index)
LSL_Types.Vector3 llList2Vector(LSL_Types.list src, int index); LSL_Types.Vector3 llList2Vector(LSL_Types.list src, int index);
//wiki rotation llList2Rot(list src, integer index) //wiki rotation llList2Rot(list src, integer index)
@ -369,8 +369,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
LSL_Types.list llDeleteSubList(LSL_Types.list src, int start, int end); LSL_Types.list llDeleteSubList(LSL_Types.list src, int start, int end);
//wiki: integer llGetListEntryType(list src, integer index) //wiki: integer llGetListEntryType(list src, integer index)
LSL_Types.LSLInteger llGetListEntryType(LSL_Types.list src, int index); LSL_Types.LSLInteger llGetListEntryType(LSL_Types.list src, int index);
//wiki: string llList2CSV(list src) //wiki: LSL_Types.LSLString llList2CSV(list src)
string llList2CSV(LSL_Types.list src); LSL_Types.LSLString llList2CSV(LSL_Types.list src);
//wiki: list llCSV2List(string src) //wiki: list llCSV2List(string src)
LSL_Types.list llCSV2List(string src); LSL_Types.list llCSV2List(string src);
//wiki: list llListRandomize(list src, integer stride) //wiki: list llListRandomize(list src, integer stride)
@ -383,12 +383,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
LSL_Types.list llListInsertList(LSL_Types.list dest, LSL_Types.list src, int start); LSL_Types.list llListInsertList(LSL_Types.list dest, LSL_Types.list src, int start);
//wiki: integer llListFindList(list src, list test) //wiki: integer llListFindList(list src, list test)
LSL_Types.LSLInteger llListFindList(LSL_Types.list src, LSL_Types.list test); LSL_Types.LSLInteger llListFindList(LSL_Types.list src, LSL_Types.list test);
//wiki: string llGetObjectName() //wiki: LSL_Types.LSLString llGetObjectName()
string llGetObjectName(); LSL_Types.LSLString llGetObjectName();
//wiki: llSetObjectName(string name) //wiki: llSetObjectName(string name)
void llSetObjectName(string name); void llSetObjectName(string name);
//wiki: string llGetDate() //wiki: LSL_Types.LSLString llGetDate()
string llGetDate(); LSL_Types.LSLString llGetDate();
//wiki: integer llEdgeOfWorld(vector pos, vector dir) //wiki: integer llEdgeOfWorld(vector pos, vector dir)
LSL_Types.LSLInteger llEdgeOfWorld(LSL_Types.Vector3 pos, LSL_Types.Vector3 dir); LSL_Types.LSLInteger llEdgeOfWorld(LSL_Types.Vector3 pos, LSL_Types.Vector3 dir);
//wiki: integer llGetAgentInfo(key id) //wiki: integer llGetAgentInfo(key id)
@ -399,8 +399,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
void llSetSoundQueueing(int queue); void llSetSoundQueueing(int queue);
//wiki: llSetSoundRadius(double radius) //wiki: llSetSoundRadius(double radius)
void llSetSoundRadius(double radius); void llSetSoundRadius(double radius);
//wiki: string llKey2Name(key id) //wiki: LSL_Types.LSLString llKey2Name(key id)
string llKey2Name(string id); LSL_Types.LSLString llKey2Name(string id);
//wiki: llSetTextureAnim(integer mode, integer face, integer sizex, integer sizey, double start, double length, double rate) //wiki: llSetTextureAnim(integer mode, integer face, integer sizex, integer sizey, double start, double length, double rate)
void llSetTextureAnim(int mode, int face, int sizex, int sizey, double start, double length, double rate); void llSetTextureAnim(int mode, int face, int sizex, int sizey, double start, double length, double rate);
//wiki: llTriggerSoundLimited(string sound, double volume, vector top_north_east, vector bottom_south_west) //wiki: llTriggerSoundLimited(string sound, double volume, vector top_north_east, vector bottom_south_west)
@ -413,9 +413,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
//wiki: integer llOverMyLand(key id) //wiki: integer llOverMyLand(key id)
LSL_Types.LSLInteger llOverMyLand(string id); LSL_Types.LSLInteger llOverMyLand(string id);
//wiki: key llGetLandOwnerAt(vector pos) //wiki: key llGetLandOwnerAt(vector pos)
string llGetLandOwnerAt(LSL_Types.Vector3 pos); LSL_Types.LSLString llGetLandOwnerAt(LSL_Types.Vector3 pos);
//wiki: key llGetNotecardLine(string name, integer line) //wiki: key llGetNotecardLine(string name, integer line)
string llGetNotecardLine(string name, int line); LSL_Types.LSLString llGetNotecardLine(string name, int line);
//wiki: vector llGetAgentSize(key id) //wiki: vector llGetAgentSize(key id)
LSL_Types.Vector3 llGetAgentSize(string id); LSL_Types.Vector3 llGetAgentSize(string id);
//wiki: integer llSameGroup(key agent) //wiki: integer llSameGroup(key agent)
@ -432,12 +432,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
LSL_Types.LSLInteger llGetAttached(); LSL_Types.LSLInteger llGetAttached();
//wiki: integer llGetFreeMemory() //wiki: integer llGetFreeMemory()
LSL_Types.LSLInteger llGetFreeMemory(); LSL_Types.LSLInteger llGetFreeMemory();
//wiki: string llGetRegionName() //wiki: LSL_Types.LSLString llGetRegionName()
string llGetRegionName(); LSL_Types.LSLString llGetRegionName();
//wiki: double llGetRegionTimeDilation() //wiki: LSL_Types.LSLFloat llGetRegionTimeDilation()
double llGetRegionTimeDilation(); LSL_Types.LSLFloat llGetRegionTimeDilation();
//wiki: double llGetRegionFPS() //wiki: LSL_Types.LSLFloat llGetRegionFPS()
double llGetRegionFPS(); LSL_Types.LSLFloat llGetRegionFPS();
//wiki: llParticleSystem(List<Object> rules //wiki: llParticleSystem(List<Object> rules
void llParticleSystem(LSL_Types.list rules); void llParticleSystem(LSL_Types.list rules);
//wiki: llGroundRepel(double height, integer water, double tau) //wiki: llGroundRepel(double height, integer water, double tau)
@ -461,7 +461,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
//wiki: llSitTarget(vector offset, rotation rot) //wiki: llSitTarget(vector offset, rotation rot)
void llSitTarget(LSL_Types.Vector3 offset, LSL_Types.Quaternion rot); void llSitTarget(LSL_Types.Vector3 offset, LSL_Types.Quaternion rot);
//wiki key llAvatarOnSitTarget() //wiki key llAvatarOnSitTarget()
string llAvatarOnSitTarget(); LSL_Types.LSLString llAvatarOnSitTarget();
//wiki: llAddToLandPassList(key avatar, double hours) //wiki: llAddToLandPassList(key avatar, double hours)
void llAddToLandPassList(string avatar, double hours); void llAddToLandPassList(string avatar, double hours);
//wiki: llSetTouchText(string text) //wiki: llSetTouchText(string text)
@ -473,7 +473,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
//wiki: llSeteCameraAtOffset(vector offset) //wiki: llSeteCameraAtOffset(vector offset)
void llSetCameraAtOffset(LSL_Types.Vector3 offset); void llSetCameraAtOffset(LSL_Types.Vector3 offset);
// //
string llDumpList2String(LSL_Types.list src, string seperator); LSL_Types.LSLString llDumpList2String(LSL_Types.list src, string seperator);
//wiki: integer llScriptDanger(vector pos) //wiki: integer llScriptDanger(vector pos)
LSL_Types.LSLInteger llScriptDanger(LSL_Types.Vector3 pos); LSL_Types.LSLInteger llScriptDanger(LSL_Types.Vector3 pos);
//wiki: llDialog(key avatar, string message, list buttons, integer chat_channel) //wiki: llDialog(key avatar, string message, list buttons, integer chat_channel)
@ -493,29 +493,29 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
//wiki: llOpenRemoteDataChannel() //wiki: llOpenRemoteDataChannel()
void llOpenRemoteDataChannel(); void llOpenRemoteDataChannel();
//wiki: key llSendRemoteData(key channel, string dest, integer idata, string sdata) //wiki: key llSendRemoteData(key channel, string dest, integer idata, string sdata)
string llSendRemoteData(string channel, string dest, int idata, string sdata); LSL_Types.LSLString llSendRemoteData(string channel, string dest, int idata, string sdata);
//wiki: llRemoteDataReply(key channel, key message_id, string sdata, integer idata) //wiki: llRemoteDataReply(key channel, key message_id, string sdata, integer idata)
void llRemoteDataReply(string channel, string message_id, string sdata, int idata); void llRemoteDataReply(string channel, string message_id, string sdata, int idata);
//wiki: llCloseRemoteDataChannel(key channel) //wiki: llCloseRemoteDataChannel(key channel)
void llCloseRemoteDataChannel(string channel); void llCloseRemoteDataChannel(string channel);
//wiki: string llMD5String(string src, integer nonce) //wiki: LSL_Types.LSLString llMD5String(string src, integer nonce)
string llMD5String(string src, int nonce); LSL_Types.LSLString llMD5String(string src, int nonce);
//wiki: llSetPrimitiveParams(list rules) //wiki: llSetPrimitiveParams(list rules)
void llSetPrimitiveParams(LSL_Types.list rules); void llSetPrimitiveParams(LSL_Types.list rules);
//wiki: llSetLinkPrimitiveParams(integer linknumber, list rules) //wiki: llSetLinkPrimitiveParams(integer linknumber, list rules)
void llSetLinkPrimitiveParams(int linknumber, LSL_Types.list rules); void llSetLinkPrimitiveParams(int linknumber, LSL_Types.list rules);
//wiki: string llStringToBase64(string str) //wiki: LSL_Types.LSLString llStringToBase64(string str)
string llStringToBase64(string str); LSL_Types.LSLString llStringToBase64(string str);
//wiki: string llBase64ToString(string str) //wiki: LSL_Types.LSLString llBase64ToString(string str)
string llBase64ToString(string str); LSL_Types.LSLString llBase64ToString(string str);
//wiki: (deprecated) //wiki: (deprecated)
void llXorBase64Strings(); void llXorBase64Strings();
//wiki: llRemoteDataSetRegion() //wiki: llRemoteDataSetRegion()
void llRemoteDataSetRegion(); void llRemoteDataSetRegion();
//wiki: double llLog10(double val) //wiki: LSL_Types.LSLFloat llLog10(double val)
double llLog10(double val); LSL_Types.LSLFloat llLog10(double val);
//wiki: double llLog(double val) //wiki: LSL_Types.LSLFloat llLog(double val)
double llLog(double val); LSL_Types.LSLFloat llLog(double val);
//wiki: list llGetAnimationList(key id) //wiki: list llGetAnimationList(key id)
LSL_Types.list llGetAnimationList(string id); LSL_Types.list llGetAnimationList(string id);
//wiki: llSetParcelMusicURL(string url) //wiki: llSetParcelMusicURL(string url)
@ -524,34 +524,34 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
LSL_Types.Vector3 llGetRootPosition(); LSL_Types.Vector3 llGetRootPosition();
//wiki: rotation llGetRootRotation() //wiki: rotation llGetRootRotation()
LSL_Types.Quaternion llGetRootRotation(); LSL_Types.Quaternion llGetRootRotation();
//wiki: string llGetObjectDesc() //wiki: LSL_Types.LSLString llGetObjectDesc()
string llGetObjectDesc(); LSL_Types.LSLString llGetObjectDesc();
//wiki: llSetObjectDesc(string desc) //wiki: llSetObjectDesc(string desc)
void llSetObjectDesc(string desc); void llSetObjectDesc(string desc);
//wiki: key llGetCreator() //wiki: key llGetCreator()
string llGetCreator(); LSL_Types.LSLString llGetCreator();
//wiki: string llGetTimestamp() //wiki: LSL_Types.LSLString llGetTimestamp()
string llGetTimestamp(); LSL_Types.LSLString llGetTimestamp();
//wiki: llSetLinkAlpha(integer linknumber, double alpha, integer face) //wiki: llSetLinkAlpha(integer linknumber, double alpha, integer face)
void llSetLinkAlpha(int linknumber, double alpha, int face); void llSetLinkAlpha(int linknumber, double alpha, int face);
//wiki: integer llGetNumberOfPrims() //wiki: integer llGetNumberOfPrims()
LSL_Types.LSLInteger llGetNumberOfPrims(); LSL_Types.LSLInteger llGetNumberOfPrims();
//wiki: key llGetNumberOfNotecardLines(string name) //wiki: key llGetNumberOfNotecardLines(string name)
string llGetNumberOfNotecardLines(string name); LSL_Types.LSLString llGetNumberOfNotecardLines(string name);
//wiki: list llGetBoundingBox(key object) //wiki: list llGetBoundingBox(key object)
LSL_Types.list llGetBoundingBox(string obj); LSL_Types.list llGetBoundingBox(string obj);
//wiki: vector llGetGeometricCenter() //wiki: vector llGetGeometricCenter()
LSL_Types.Vector3 llGetGeometricCenter(); LSL_Types.Vector3 llGetGeometricCenter();
//wiki: list llGetPrimitiveParams(list rules) //wiki: list llGetPrimitiveParams(list rules)
LSL_Types.list llGetPrimitiveParams(LSL_Types.list rules); LSL_Types.list llGetPrimitiveParams(LSL_Types.list rules);
//wiki: string llIntegerToBase64(integer number) //wiki: LSL_Types.LSLString llIntegerToBase64(integer number)
string llIntegerToBase64(int number); LSL_Types.LSLString llIntegerToBase64(int number);
//wiki integer llBase64ToInteger(string str) //wiki integer llBase64ToInteger(string str)
LSL_Types.LSLInteger llBase64ToInteger(string str); LSL_Types.LSLInteger llBase64ToInteger(string str);
//wiki: double llGetGMTclock() //wiki: LSL_Types.LSLFloat llGetGMTclock()
double llGetGMTclock(); LSL_Types.LSLFloat llGetGMTclock();
//wiki: string llGetSimulatorHostname() //wiki: LSL_Types.LSLString llGetSimulatorHostname()
string llGetSimulatorHostname(); LSL_Types.LSLString llGetSimulatorHostname();
//llSetLocalRot(rotation rot) //llSetLocalRot(rotation rot)
void llSetLocalRot(LSL_Types.Quaternion rot); void llSetLocalRot(LSL_Types.Quaternion rot);
//wiki: list llParseStringKeepNulls(string src, list separators, list spacers) //wiki: list llParseStringKeepNulls(string src, list separators, list spacers)
@ -569,15 +569,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
//wiki: llSetInventoryPermMask(string item, integer mask, integer value) //wiki: llSetInventoryPermMask(string item, integer mask, integer value)
void llSetInventoryPermMask(string item, int mask, int value); void llSetInventoryPermMask(string item, int mask, int value);
//wiki: key llGetInventoryCreator(string item) //wiki: key llGetInventoryCreator(string item)
string llGetInventoryCreator(string item); LSL_Types.LSLString llGetInventoryCreator(string item);
//wiki: llOwnerSay(string msg) //wiki: llOwnerSay(string msg)
void llOwnerSay(string msg); void llOwnerSay(string msg);
//wiki: key llRequestSimulatorData(string simulator, integer data) //wiki: key llRequestSimulatorData(string simulator, integer data)
string llRequestSimulatorData(string simulator, int data); LSL_Types.LSLString llRequestSimulatorData(string simulator, int data);
//wiki: llForceMouselook(integer mouselook) //wiki: llForceMouselook(integer mouselook)
void llForceMouselook(int mouselook); void llForceMouselook(int mouselook);
//wiki: double llGetObjectMass(key id) //wiki: LSL_Types.LSLFloat llGetObjectMass(key id)
double llGetObjectMass(string id); LSL_Types.LSLFloat llGetObjectMass(string id);
LSL_Types.list llListReplaceList(LSL_Types.list dest, LSL_Types.list src, int start, int end); LSL_Types.list llListReplaceList(LSL_Types.list dest, LSL_Types.list src, int start, int end);
//wiki: llLoadURL(key avatar_id, string message, string url) //wiki: llLoadURL(key avatar_id, string message, string url)
void llLoadURL(string avatar_id, string message, string url); void llLoadURL(string avatar_id, string message, string url);
@ -598,10 +598,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
void llSetPrimURL(); void llSetPrimURL();
//wiki: (deprecated) //wiki: (deprecated)
void llRefreshPrimURL(); void llRefreshPrimURL();
//wiki: string llEscapeURL(string url) //wiki: LSL_Types.LSLString llEscapeURL(string url)
string llEscapeURL(string url); LSL_Types.LSLString llEscapeURL(string url);
//wiki: string llUnescapeURL(string url) //wiki: LSL_Types.LSLString llUnescapeURL(string url)
string llUnescapeURL(string url); LSL_Types.LSLString llUnescapeURL(string url);
//wiki: llMapDestination(string simname, vector pos, vector look_at) //wiki: llMapDestination(string simname, vector pos, vector look_at)
void llMapDestination(string simname, LSL_Types.Vector3 pos, LSL_Types.Vector3 look_at); void llMapDestination(string simname, LSL_Types.Vector3 pos, LSL_Types.Vector3 look_at);
//wiki: llAddToLandBanList(key avatar, double hours) //wiki: llAddToLandBanList(key avatar, double hours)
@ -614,17 +614,17 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
void llSetCameraParams(LSL_Types.list rules); void llSetCameraParams(LSL_Types.list rules);
//wiki: llClearCameraParams() //wiki: llClearCameraParams()
void llClearCameraParams(); void llClearCameraParams();
//wiki: double llListStatistics(integer operation, list src) //wiki: LSL_Types.LSLFloat llListStatistics(integer operation, list src)
double llListStatistics(int operation, LSL_Types.list src); LSL_Types.LSLFloat llListStatistics(int operation, LSL_Types.list src);
//wiki: integer llGetUnixTime() //wiki: integer llGetUnixTime()
LSL_Types.LSLInteger llGetUnixTime(); LSL_Types.LSLInteger llGetUnixTime();
//wiki: integer llGetParcelFlags(vector pos) //wiki: integer llGetParcelFlags(vector pos)
LSL_Types.LSLInteger llGetParcelFlags(LSL_Types.Vector3 pos); LSL_Types.LSLInteger llGetParcelFlags(LSL_Types.Vector3 pos);
//wiki: integer llGetRegionFlags() //wiki: integer llGetRegionFlags()
LSL_Types.LSLInteger llGetRegionFlags(); LSL_Types.LSLInteger llGetRegionFlags();
//wiki: string llXorBase64StringsCorrect(string str1, string str2) //wiki: LSL_Types.LSLString llXorBase64StringsCorrect(string str1, string str2)
string llXorBase64StringsCorrect(string str1, string str2); LSL_Types.LSLString llXorBase64StringsCorrect(string str1, string str2);
string llHTTPRequest(string url, LSL_Types.list parameters, string body); LSL_Types.LSLString llHTTPRequest(string url, LSL_Types.list parameters, string body);
//wiki: llResetLandBanList() //wiki: llResetLandBanList()
void llResetLandBanList(); void llResetLandBanList();
//wiki: llResetLandPassList() //wiki: llResetLandPassList()
@ -641,8 +641,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
LSL_Types.list llGetParcelDetails(LSL_Types.Vector3 pos, LSL_Types.list param); LSL_Types.list llGetParcelDetails(LSL_Types.Vector3 pos, LSL_Types.list param);
//wiki: llSetLinkTexture(integer linknumber, string texture, integer face) //wiki: llSetLinkTexture(integer linknumber, string texture, integer face)
void llSetLinkTexture(int linknumber, string texture, int face); void llSetLinkTexture(int linknumber, string texture, int face);
//wiki: string llStringTrim(string src, int type) //wiki: LSL_Types.LSLString llStringTrim(string src, int type)
string llStringTrim(string src, int type); LSL_Types.LSLString llStringTrim(string src, int type);
//wiki: LSL_Types.list llGetObjectDetails(string id, LSL_Types.list args) //wiki: LSL_Types.list llGetObjectDetails(string id, LSL_Types.list args)
LSL_Types.list llGetObjectDetails(string id, LSL_Types.list args); LSL_Types.list llGetObjectDetails(string id, LSL_Types.list args);
} }