aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler
diff options
context:
space:
mode:
authorTedd Hansen2007-08-18 18:53:03 +0000
committerTedd Hansen2007-08-18 18:53:03 +0000
commit6d10c6535847a65f3bc56398a609916174684729 (patch)
treec2828badeeed054a465f6c634ac7cc343c4ca4f7 /OpenSim/Region/ScriptEngine/DotNetEngine/Compiler
parentStarted on AppDomains for ScriptEngine. Moved llFunctions in LSL_BaseClass.cs... (diff)
downloadopensim-SC_OLD-6d10c6535847a65f3bc56398a609916174684729.zip
opensim-SC_OLD-6d10c6535847a65f3bc56398a609916174684729.tar.gz
opensim-SC_OLD-6d10c6535847a65f3bc56398a609916174684729.tar.bz2
opensim-SC_OLD-6d10c6535847a65f3bc56398a609916174684729.tar.xz
Moved LSL_BuiltIn_Commands_Interface.cs to a separate library (OpenSim.Region.ScriptEngine.Common). Fixed last compile error (forgot to include LSL_BuiltIn_Commands.cs).
Diffstat (limited to 'OpenSim/Region/ScriptEngine/DotNetEngine/Compiler')
-rw-r--r--OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL_BaseClass.cs59
-rw-r--r--OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSO/LSL_BaseClass.cs1
-rw-r--r--OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSO/LSL_OPCODE_IL_processor.cs1
-rw-r--r--OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/Server_API/LSL_BuiltIn_Commands.cs472
-rw-r--r--OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/Server_API/LSL_BuiltIn_Commands_Interface.cs629
5 files changed, 531 insertions, 631 deletions
diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL_BaseClass.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL_BaseClass.cs
index cc62ab5..bdae95d 100644
--- a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL_BaseClass.cs
+++ b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL_BaseClass.cs
@@ -2,7 +2,7 @@ using System;
2using System.Collections.Generic; 2using System.Collections.Generic;
3using System.Text; 3using System.Text;
4using OpenSim.Region.ScriptEngine.DotNetEngine.Compiler; 4using OpenSim.Region.ScriptEngine.DotNetEngine.Compiler;
5using OpenSim.Framework.Console; 5using OpenSim.Region.ScriptEngine.Common;
6using System.Threading; 6using System.Threading;
7 7
8namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL 8namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL
@@ -25,7 +25,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL
25 { 25 {
26 m_LSL_Functions = LSL_Functions; 26 m_LSL_Functions = LSL_Functions;
27 27
28 MainLog.Instance.Notice("ScriptEngine", "LSL_BaseClass.Start() called."); 28 //MainLog.Instance.Notice("ScriptEngine", "LSL_BaseClass.Start() called.");
29 29
30 // Get this AppDomain's settings and display some of them. 30 // Get this AppDomain's settings and display some of them.
31 AppDomainSetup ads = AppDomain.CurrentDomain.SetupInformation; 31 AppDomainSetup ads = AppDomain.CurrentDomain.SetupInformation;
@@ -46,6 +46,13 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL
46 return; 46 return;
47 } 47 }
48 48
49
50
51 //
52 // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs
53 //
54 // They are only forwarders to LSL_BuiltIn_Commands.cs
55 //
49 public double llSin(double f) { return m_LSL_Functions.llSin(f); } 56 public double llSin(double f) { return m_LSL_Functions.llSin(f); }
50 public double llCos(double f) { return m_LSL_Functions.llCos(f); } 57 public double llCos(double f) { return m_LSL_Functions.llCos(f); }
51 public double llTan(double f) { return m_LSL_Functions.llTan(f); } 58 public double llTan(double f) { return m_LSL_Functions.llTan(f); }
@@ -70,6 +77,9 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL
70 public Axiom.Math.Quaternion llRotBetween(Axiom.Math.Vector3 start, Axiom.Math.Vector3 end) { return m_LSL_Functions.llRotBetween(start, end); } 77 public Axiom.Math.Quaternion llRotBetween(Axiom.Math.Vector3 start, Axiom.Math.Vector3 end) { return m_LSL_Functions.llRotBetween(start, end); }
71 public void llWhisper(int channelID, string text) { m_LSL_Functions.llWhisper(channelID, text); } 78 public void llWhisper(int channelID, string text) { m_LSL_Functions.llWhisper(channelID, text); }
72 public void llSay(int channelID, string text) { m_LSL_Functions.llSay(channelID, text); } 79 public void llSay(int channelID, string text) { m_LSL_Functions.llSay(channelID, text); }
80 //
81 // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs
82 //
73 public void llShout(int channelID, string text) { m_LSL_Functions.llShout(channelID, text); } 83 public void llShout(int channelID, string text) { m_LSL_Functions.llShout(channelID, text); }
74 public int llListen(int channelID, string name, string ID, string msg) { return m_LSL_Functions.llListen(channelID, name, ID, msg); } 84 public int llListen(int channelID, string name, string ID, string msg) { return m_LSL_Functions.llListen(channelID, name, ID, msg); }
75 public void llListenControl(int number, int active) { m_LSL_Functions.llListenControl(number, active); } 85 public void llListenControl(int number, int active) { m_LSL_Functions.llListenControl(number, active); }
@@ -87,6 +97,9 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL
87 public Axiom.Math.Quaternion llDetectedRot(int number) { return m_LSL_Functions.llDetectedRot(number); } 97 public Axiom.Math.Quaternion llDetectedRot(int number) { return m_LSL_Functions.llDetectedRot(number); }
88 public int llDetectedGroup(int number) { return m_LSL_Functions.llDetectedGroup(number); } 98 public int llDetectedGroup(int number) { return m_LSL_Functions.llDetectedGroup(number); }
89 public int llDetectedLinkNumber(int number) { return m_LSL_Functions.llDetectedLinkNumber(number); } 99 public int llDetectedLinkNumber(int number) { return m_LSL_Functions.llDetectedLinkNumber(number); }
100 //
101 // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs
102 //
90 public void llDie() { m_LSL_Functions.llDie(); } 103 public void llDie() { m_LSL_Functions.llDie(); }
91 public double llGround(Axiom.Math.Vector3 offset) { return m_LSL_Functions.llGround(offset); } 104 public double llGround(Axiom.Math.Vector3 offset) { return m_LSL_Functions.llGround(offset); }
92 public double llCloud(Axiom.Math.Vector3 offset) { return m_LSL_Functions.llCloud(offset); } 105 public double llCloud(Axiom.Math.Vector3 offset) { return m_LSL_Functions.llCloud(offset); }
@@ -104,6 +117,9 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL
104 public void llOffsetTexture(double u, double v, int face) { m_LSL_Functions.llOffsetTexture(u, v, face); } 117 public void llOffsetTexture(double u, double v, int face) { m_LSL_Functions.llOffsetTexture(u, v, face); }
105 public void llRotateTexture(double rotation, int face) { m_LSL_Functions.llRotateTexture(rotation, face); } 118 public void llRotateTexture(double rotation, int face) { m_LSL_Functions.llRotateTexture(rotation, face); }
106 public string llGetTexture(int face) { return m_LSL_Functions.llGetTexture(face); } 119 public string llGetTexture(int face) { return m_LSL_Functions.llGetTexture(face); }
120 //
121 // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs
122 //
107 public void llSetPos(Axiom.Math.Vector3 pos) { m_LSL_Functions.llSetPos(pos); } 123 public void llSetPos(Axiom.Math.Vector3 pos) { m_LSL_Functions.llSetPos(pos); }
108 public Axiom.Math.Vector3 llGetPos() { return m_LSL_Functions.llGetPos(); } 124 public Axiom.Math.Vector3 llGetPos() { return m_LSL_Functions.llGetPos(); }
109 public Axiom.Math.Vector3 llGetLocalPos() { return m_LSL_Functions.llGetLocalPos(); } 125 public Axiom.Math.Vector3 llGetLocalPos() { return m_LSL_Functions.llGetLocalPos(); }
@@ -119,6 +135,9 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL
119 public void llMoveToTarget(Axiom.Math.Vector3 target, double tau) { m_LSL_Functions.llMoveToTarget(target, tau); } 135 public void llMoveToTarget(Axiom.Math.Vector3 target, double tau) { m_LSL_Functions.llMoveToTarget(target, tau); }
120 public void llStopMoveToTarget() { m_LSL_Functions.llStopMoveToTarget(); } 136 public void llStopMoveToTarget() { m_LSL_Functions.llStopMoveToTarget(); }
121 public void llApplyImpulse(Axiom.Math.Vector3 force, int local) { m_LSL_Functions.llApplyImpulse(force, local); } 137 public void llApplyImpulse(Axiom.Math.Vector3 force, int local) { m_LSL_Functions.llApplyImpulse(force, local); }
138 //
139 // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs
140 //
122 public void llApplyRotationalImpulse(Axiom.Math.Vector3 force, int local) { m_LSL_Functions.llApplyRotationalImpulse(force, local); } 141 public void llApplyRotationalImpulse(Axiom.Math.Vector3 force, int local) { m_LSL_Functions.llApplyRotationalImpulse(force, local); }
123 public void llSetTorque(Axiom.Math.Vector3 torque, int local) { m_LSL_Functions.llSetTorque(torque, local); } 142 public void llSetTorque(Axiom.Math.Vector3 torque, int local) { m_LSL_Functions.llSetTorque(torque, local); }
124 public Axiom.Math.Vector3 llGetTorque() { return m_LSL_Functions.llGetTorque(); } 143 public Axiom.Math.Vector3 llGetTorque() { return m_LSL_Functions.llGetTorque(); }
@@ -137,6 +156,9 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL
137 public void llLoopSoundMaster(string sound, double volume) { m_LSL_Functions.llLoopSoundMaster(sound, volume); } 156 public void llLoopSoundMaster(string sound, double volume) { m_LSL_Functions.llLoopSoundMaster(sound, volume); }
138 public void llLoopSoundSlave(string sound, double volume) { m_LSL_Functions.llLoopSoundSlave(sound, volume); } 157 public void llLoopSoundSlave(string sound, double volume) { m_LSL_Functions.llLoopSoundSlave(sound, volume); }
139 public void llPlaySoundSlave(string sound, double volume) { m_LSL_Functions.llPlaySoundSlave(sound, volume); } 158 public void llPlaySoundSlave(string sound, double volume) { m_LSL_Functions.llPlaySoundSlave(sound, volume); }
159 //
160 // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs
161 //
140 public void llTriggerSound(string sound, double volume) { m_LSL_Functions.llTriggerSound(sound, volume); } 162 public void llTriggerSound(string sound, double volume) { m_LSL_Functions.llTriggerSound(sound, volume); }
141 public void llStopSound() { m_LSL_Functions.llStopSound(); } 163 public void llStopSound() { m_LSL_Functions.llStopSound(); }
142 public void llPreloadSound(string sound) { m_LSL_Functions.llPreloadSound(sound); } 164 public void llPreloadSound(string sound) { m_LSL_Functions.llPreloadSound(sound); }
@@ -155,6 +177,9 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL
155 public void llStopLookAt() { m_LSL_Functions.llStopLookAt(); } 177 public void llStopLookAt() { m_LSL_Functions.llStopLookAt(); }
156 public void llSetTimerEvent(double sec) { m_LSL_Functions.llSetTimerEvent(sec); } 178 public void llSetTimerEvent(double sec) { m_LSL_Functions.llSetTimerEvent(sec); }
157 public void llSleep(double sec) { m_LSL_Functions.llSleep(sec); } 179 public void llSleep(double sec) { m_LSL_Functions.llSleep(sec); }
180 //
181 // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs
182 //
158 public double llGetMass() { return m_LSL_Functions.llGetMass(); } 183 public double llGetMass() { return m_LSL_Functions.llGetMass(); }
159 public void llCollisionFilter(string name, string id, int accept) { m_LSL_Functions.llCollisionFilter(name, id, accept); } 184 public void llCollisionFilter(string name, string id, int accept) { m_LSL_Functions.llCollisionFilter(name, id, accept); }
160 public void llTakeControls(int controls, int accept, int pass_on) { m_LSL_Functions.llTakeControls(controls, accept, pass_on); } 185 public void llTakeControls(int controls, int accept, int pass_on) { m_LSL_Functions.llTakeControls(controls, accept, pass_on); }
@@ -174,6 +199,9 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL
174 public void llMinEventDelay(double delay) { m_LSL_Functions.llMinEventDelay(delay); } 199 public void llMinEventDelay(double delay) { m_LSL_Functions.llMinEventDelay(delay); }
175 public void llSoundPreload() { m_LSL_Functions.llSoundPreload(); } 200 public void llSoundPreload() { m_LSL_Functions.llSoundPreload(); }
176 public void llRotLookAt(Axiom.Math.Quaternion target, double strength, double damping) { m_LSL_Functions.llRotLookAt(target, strength, damping); } 201 public void llRotLookAt(Axiom.Math.Quaternion target, double strength, double damping) { m_LSL_Functions.llRotLookAt(target, strength, damping); }
202 //
203 // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs
204 //
177 public int llStringLength(string str) { return m_LSL_Functions.llStringLength(str); } 205 public int llStringLength(string str) { return m_LSL_Functions.llStringLength(str); }
178 public void llStartAnimation(string anim) { m_LSL_Functions.llStartAnimation(anim); } 206 public void llStartAnimation(string anim) { m_LSL_Functions.llStartAnimation(anim); }
179 public void llStopAnimation(string anim) { m_LSL_Functions.llStopAnimation(anim); } 207 public void llStopAnimation(string anim) { m_LSL_Functions.llStopAnimation(anim); }
@@ -194,6 +222,9 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL
194 public void llGetLinkName(int linknum) { m_LSL_Functions.llGetLinkName(linknum); } 222 public void llGetLinkName(int linknum) { m_LSL_Functions.llGetLinkName(linknum); }
195 public int llGetInventoryNumber(int type) { return m_LSL_Functions.llGetInventoryNumber(type); } 223 public int llGetInventoryNumber(int type) { return m_LSL_Functions.llGetInventoryNumber(type); }
196 public string llGetInventoryName(int type, int number) { return m_LSL_Functions.llGetInventoryName(type, number); } 224 public string llGetInventoryName(int type, int number) { return m_LSL_Functions.llGetInventoryName(type, number); }
225 //
226 // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs
227 //
197 public void llSetScriptState(string name, int run) { m_LSL_Functions.llSetScriptState(name, run); } 228 public void llSetScriptState(string name, int run) { m_LSL_Functions.llSetScriptState(name, run); }
198 public double llGetEnergy() { return m_LSL_Functions.llGetEnergy(); } 229 public double llGetEnergy() { return m_LSL_Functions.llGetEnergy(); }
199 public void llGiveInventory(string destination, string inventory) { m_LSL_Functions.llGiveInventory(destination, inventory); } 230 public void llGiveInventory(string destination, string inventory) { m_LSL_Functions.llGiveInventory(destination, inventory); }
@@ -215,6 +246,9 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL
215 public void llPassCollisions(int pass) { m_LSL_Functions.llPassCollisions(pass); } 246 public void llPassCollisions(int pass) { m_LSL_Functions.llPassCollisions(pass); }
216 public string llGetScriptName() { return m_LSL_Functions.llGetScriptName(); } 247 public string llGetScriptName() { return m_LSL_Functions.llGetScriptName(); }
217 public int llGetNumberOfSides() { return m_LSL_Functions.llGetNumberOfSides(); } 248 public int llGetNumberOfSides() { return m_LSL_Functions.llGetNumberOfSides(); }
249 //
250 // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs
251 //
218 public Axiom.Math.Quaternion llAxisAngle2Rot(Axiom.Math.Vector3 axis, double angle) { return m_LSL_Functions.llAxisAngle2Rot(axis, angle); } 252 public Axiom.Math.Quaternion llAxisAngle2Rot(Axiom.Math.Vector3 axis, double angle) { return m_LSL_Functions.llAxisAngle2Rot(axis, angle); }
219 public Axiom.Math.Vector3 llRot2Axis(Axiom.Math.Quaternion rot) { return m_LSL_Functions.llRot2Axis(rot); } 253 public Axiom.Math.Vector3 llRot2Axis(Axiom.Math.Quaternion rot) { return m_LSL_Functions.llRot2Axis(rot); }
220 public void llRot2Angle() { m_LSL_Functions.llRot2Angle(); } 254 public void llRot2Angle() { m_LSL_Functions.llRot2Angle(); }
@@ -232,6 +266,9 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL
232 public Axiom.Math.Vector3 llGetCenterOfMass() { return m_LSL_Functions.llGetCenterOfMass(); } 266 public Axiom.Math.Vector3 llGetCenterOfMass() { return m_LSL_Functions.llGetCenterOfMass(); }
233 public List<string> llListSort(List<string> src, int stride, int ascending) { return m_LSL_Functions.llListSort(src, stride, ascending); } 267 public List<string> llListSort(List<string> src, int stride, int ascending) { return m_LSL_Functions.llListSort(src, stride, ascending); }
234 public int llGetListLength(List<string> src) { return m_LSL_Functions.llGetListLength(src); } 268 public int llGetListLength(List<string> src) { return m_LSL_Functions.llGetListLength(src); }
269 //
270 // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs
271 //
235 public int llList2Integer(List<string> src, int index) { return m_LSL_Functions.llList2Integer(src, index); } 272 public int llList2Integer(List<string> src, int index) { return m_LSL_Functions.llList2Integer(src, index); }
236 public double llList2double(List<string> src, int index) { return m_LSL_Functions.llList2double(src, index); } 273 public double llList2double(List<string> src, int index) { return m_LSL_Functions.llList2double(src, index); }
237 public string llList2String(List<string> src, int index) { return m_LSL_Functions.llList2String(src, index); } 274 public string llList2String(List<string> src, int index) { return m_LSL_Functions.llList2String(src, index); }
@@ -253,6 +290,9 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL
253 public string llGetDate() { return m_LSL_Functions.llGetDate(); } 290 public string llGetDate() { return m_LSL_Functions.llGetDate(); }
254 public int llEdgeOfWorld(Axiom.Math.Vector3 pos, Axiom.Math.Vector3 dir) { return m_LSL_Functions.llEdgeOfWorld(pos, dir); } 291 public int llEdgeOfWorld(Axiom.Math.Vector3 pos, Axiom.Math.Vector3 dir) { return m_LSL_Functions.llEdgeOfWorld(pos, dir); }
255 public int llGetAgentInfo(string id) { return m_LSL_Functions.llGetAgentInfo(id); } 292 public int llGetAgentInfo(string id) { return m_LSL_Functions.llGetAgentInfo(id); }
293 //
294 // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs
295 //
256 public void llAdjustSoundVolume(double volume) { m_LSL_Functions.llAdjustSoundVolume(volume); } 296 public void llAdjustSoundVolume(double volume) { m_LSL_Functions.llAdjustSoundVolume(volume); }
257 public void llSetSoundQueueing(int queue) { m_LSL_Functions.llSetSoundQueueing(queue); } 297 public void llSetSoundQueueing(int queue) { m_LSL_Functions.llSetSoundQueueing(queue); }
258 public void llSetSoundRadius(double radius) { m_LSL_Functions.llSetSoundRadius(radius); } 298 public void llSetSoundRadius(double radius) { m_LSL_Functions.llSetSoundRadius(radius); }
@@ -275,6 +315,9 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL
275 public string llGetRegionName() { return m_LSL_Functions.llGetRegionName(); } 315 public string llGetRegionName() { return m_LSL_Functions.llGetRegionName(); }
276 public double llGetRegionTimeDilation() { return m_LSL_Functions.llGetRegionTimeDilation(); } 316 public double llGetRegionTimeDilation() { return m_LSL_Functions.llGetRegionTimeDilation(); }
277 public double llGetRegionFPS() { return m_LSL_Functions.llGetRegionFPS(); } 317 public double llGetRegionFPS() { return m_LSL_Functions.llGetRegionFPS(); }
318 //
319 // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs
320 //
278 public void llParticleSystem(List<Object> rules) { m_LSL_Functions.llParticleSystem(rules); } 321 public void llParticleSystem(List<Object> rules) { m_LSL_Functions.llParticleSystem(rules); }
279 public void llGroundRepel(double height, int water, double tau) { m_LSL_Functions.llGroundRepel(height, water, tau); } 322 public void llGroundRepel(double height, int water, double tau) { m_LSL_Functions.llGroundRepel(height, water, tau); }
280 public void llGiveInventoryList() { m_LSL_Functions.llGiveInventoryList(); } 323 public void llGiveInventoryList() { m_LSL_Functions.llGiveInventoryList(); }
@@ -300,6 +343,9 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL
300 public void llRemoteLoadScript() { m_LSL_Functions.llRemoteLoadScript(); } 343 public void llRemoteLoadScript() { m_LSL_Functions.llRemoteLoadScript(); }
301 public void llSetRemoteScriptAccessPin(int pin) { m_LSL_Functions.llSetRemoteScriptAccessPin(pin); } 344 public void llSetRemoteScriptAccessPin(int pin) { m_LSL_Functions.llSetRemoteScriptAccessPin(pin); }
302 public void llRemoteLoadScriptPin(string target, string name, int pin, int running, int start_param) { m_LSL_Functions.llRemoteLoadScriptPin(target, name, pin, running, start_param); } 345 public void llRemoteLoadScriptPin(string target, string name, int pin, int running, int start_param) { m_LSL_Functions.llRemoteLoadScriptPin(target, name, pin, running, start_param); }
346 //
347 // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs
348 //
303 public void llOpenRemoteDataChannel() { m_LSL_Functions.llOpenRemoteDataChannel(); } 349 public void llOpenRemoteDataChannel() { m_LSL_Functions.llOpenRemoteDataChannel(); }
304 public string llSendRemoteData(string channel, string dest, int idata, string sdata) { return m_LSL_Functions.llSendRemoteData(channel, dest, idata, sdata); } 350 public string llSendRemoteData(string channel, string dest, int idata, string sdata) { return m_LSL_Functions.llSendRemoteData(channel, dest, idata, sdata); }
305 public void llRemoteDataReply(string channel, string message_id, string sdata, int idata) { m_LSL_Functions.llRemoteDataReply(channel, message_id, sdata, idata); } 351 public void llRemoteDataReply(string channel, string message_id, string sdata, int idata) { m_LSL_Functions.llRemoteDataReply(channel, message_id, sdata, idata); }
@@ -326,6 +372,9 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL
326 public List<string> llGetBoundingBox(string obj) { return m_LSL_Functions.llGetBoundingBox(obj); } 372 public List<string> llGetBoundingBox(string obj) { return m_LSL_Functions.llGetBoundingBox(obj); }
327 public Axiom.Math.Vector3 llGetGeometricCenter() { return m_LSL_Functions.llGetGeometricCenter(); } 373 public Axiom.Math.Vector3 llGetGeometricCenter() { return m_LSL_Functions.llGetGeometricCenter(); }
328 public void llGetPrimitiveParams() { m_LSL_Functions.llGetPrimitiveParams(); } 374 public void llGetPrimitiveParams() { m_LSL_Functions.llGetPrimitiveParams(); }
375 //
376 // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs
377 //
329 public string llIntegerToBase64(int number) { return m_LSL_Functions.llIntegerToBase64(number); } 378 public string llIntegerToBase64(int number) { return m_LSL_Functions.llIntegerToBase64(number); }
330 public int llBase64ToInteger(string str) { return m_LSL_Functions.llBase64ToInteger(str); } 379 public int llBase64ToInteger(string str) { return m_LSL_Functions.llBase64ToInteger(str); }
331 public double llGetGMTclock() { return m_LSL_Functions.llGetGMTclock(); } 380 public double llGetGMTclock() { return m_LSL_Functions.llGetGMTclock(); }
@@ -347,6 +396,9 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL
347 public void llParcelMediaCommandList(List<string> commandList) { m_LSL_Functions.llParcelMediaCommandList(commandList); } 396 public void llParcelMediaCommandList(List<string> commandList) { m_LSL_Functions.llParcelMediaCommandList(commandList); }
348 public void llParcelMediaQuery() { m_LSL_Functions.llParcelMediaQuery(); } 397 public void llParcelMediaQuery() { m_LSL_Functions.llParcelMediaQuery(); }
349 public int llModPow(int a, int b, int c) { return m_LSL_Functions.llModPow(a, b, c); } 398 public int llModPow(int a, int b, int c) { return m_LSL_Functions.llModPow(a, b, c); }
399 //
400 // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs
401 //
350 public int llGetInventoryType(string name) { return m_LSL_Functions.llGetInventoryType(name); } 402 public int llGetInventoryType(string name) { return m_LSL_Functions.llGetInventoryType(name); }
351 public void llSetPayPrice(int price, List<string> quick_pay_buttons) { m_LSL_Functions.llSetPayPrice(price, quick_pay_buttons); } 403 public void llSetPayPrice(int price, List<string> quick_pay_buttons) { m_LSL_Functions.llSetPayPrice(price, quick_pay_buttons); }
352 public Axiom.Math.Vector3 llGetCameraPos() { return m_LSL_Functions.llGetCameraPos(); } 404 public Axiom.Math.Vector3 llGetCameraPos() { return m_LSL_Functions.llGetCameraPos(); }
@@ -372,6 +424,9 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL
372 public int llGetParcelPrimCount(Axiom.Math.Vector3 pos, int category, int sim_wide) { return m_LSL_Functions.llGetParcelPrimCount(pos, category, sim_wide); } 424 public int llGetParcelPrimCount(Axiom.Math.Vector3 pos, int category, int sim_wide) { return m_LSL_Functions.llGetParcelPrimCount(pos, category, sim_wide); }
373 public List<string> llGetParcelPrimOwners(Axiom.Math.Vector3 pos) { return m_LSL_Functions.llGetParcelPrimOwners(pos); } 425 public List<string> llGetParcelPrimOwners(Axiom.Math.Vector3 pos) { return m_LSL_Functions.llGetParcelPrimOwners(pos); }
374 public int llGetObjectPrimCount(string object_id) { return m_LSL_Functions.llGetObjectPrimCount(object_id); } 426 public int llGetObjectPrimCount(string object_id) { return m_LSL_Functions.llGetObjectPrimCount(object_id); }
427 //
428 // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs
429 //
375 public int llGetParcelMaxPrims(Axiom.Math.Vector3 pos, int sim_wide) { return m_LSL_Functions.llGetParcelMaxPrims(pos, sim_wide); } 430 public int llGetParcelMaxPrims(Axiom.Math.Vector3 pos, int sim_wide) { return m_LSL_Functions.llGetParcelMaxPrims(pos, sim_wide); }
376 public List<string> llGetParcelDetails(Axiom.Math.Vector3 pos, List<string> param) { return m_LSL_Functions.llGetParcelDetails(pos, param); } 431 public List<string> llGetParcelDetails(Axiom.Math.Vector3 pos, List<string> param) { return m_LSL_Functions.llGetParcelDetails(pos, param); }
377 432
diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSO/LSL_BaseClass.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSO/LSL_BaseClass.cs
index 0fbb2cf..374d37d 100644
--- a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSO/LSL_BaseClass.cs
+++ b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSO/LSL_BaseClass.cs
@@ -3,6 +3,7 @@ using System.Collections.Generic;
3using System.Text; 3using System.Text;
4using System.IO; 4using System.IO;
5using OpenSim.Region.ScriptEngine.DotNetEngine.Compiler; 5using OpenSim.Region.ScriptEngine.DotNetEngine.Compiler;
6using OpenSim.Region.ScriptEngine.Common;
6 7
7namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSO 8namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSO
8{ 9{
diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSO/LSL_OPCODE_IL_processor.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSO/LSL_OPCODE_IL_processor.cs
index e472f4a..18a2b55 100644
--- a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSO/LSL_OPCODE_IL_processor.cs
+++ b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSO/LSL_OPCODE_IL_processor.cs
@@ -31,6 +31,7 @@ using System.Collections.Generic;
31using System.Text; 31using System.Text;
32using System.Reflection; 32using System.Reflection;
33using System.Reflection.Emit; 33using System.Reflection.Emit;
34using OpenSim.Region.ScriptEngine.Common;
34 35
35namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSO 36namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSO
36{ 37{
diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/Server_API/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/Server_API/LSL_BuiltIn_Commands.cs
new file mode 100644
index 0000000..8c2e799
--- /dev/null
+++ b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/Server_API/LSL_BuiltIn_Commands.cs
@@ -0,0 +1,472 @@
1using System;
2using System.Collections.Generic;
3using System.Text;
4using libsecondlife;
5using OpenSim.Region.Environment.Scenes;
6using OpenSim.Region.Environment.Scenes.Scripting;
7using OpenSim.Region.ScriptEngine.DotNetEngine.Compiler;
8using OpenSim.Region.ScriptEngine.Common;
9using OpenSim.Framework.Console;
10
11namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler
12{
13
14 /// <summary>
15 /// Contains all LSL ll-functions. This class will be in Default AppDomain.
16 /// </summary>
17 [Serializable]
18 public class LSL_BuiltIn_Commands: LSL_BuiltIn_Commands_Interface
19 {
20 private System.Text.ASCIIEncoding enc = new System.Text.ASCIIEncoding();
21 private ScriptManager m_manager;
22 private IScriptHost m_host;
23
24 public LSL_BuiltIn_Commands(ScriptManager manager, IScriptHost host)
25 {
26 m_manager = manager;
27 m_host = host;
28
29 MainLog.Instance.Notice("ScriptEngine", "LSL_BaseClass.Start() called. Hosted by [" + m_host.Name + ":" + m_host.UUID + "@" + m_host.AbsolutePosition + "]");
30 }
31
32
33 public string State = "default";
34
35 public Scene World
36 {
37 get { return m_manager.World; }
38 }
39
40 //These are the implementations of the various ll-functions used by the LSL scripts.
41 //starting out, we use the System.Math library for trig functions. - CFK 8-14-07
42 public double llSin(double f) { return (double)Math.Sin(f); }
43 public double llCos(double f) { return (double)Math.Cos(f); }
44 public double llTan(double f) { return (double)Math.Tan(f); }
45 public double llAtan2(double x, double y) { return (double)Math.Atan2(y, x); }
46 public double llSqrt(double f) { return (double)Math.Sqrt(f); }
47 public double llPow(double fbase, double fexponent) { return (double)Math.Pow(fbase, fexponent); }
48 public int llAbs(int i) { return (int)Math.Abs(i); }
49 public double llFabs(double f) { return (double)Math.Abs(f); }
50
51 public double llFrand(double mag)
52 {
53 lock (OpenSim.Framework.Utilities.Util.RandomClass)
54 {
55 return OpenSim.Framework.Utilities.Util.RandomClass.Next((int)mag);
56 }
57 }
58 public int llFloor(double f) { return (int)Math.Floor(f); }
59 public int llCeil(double f) { return (int)Math.Ceiling(f); }
60 public int llRound(double f) { return (int)Math.Round(f, 1); }
61 public double llVecMag(Axiom.Math.Vector3 v) { return 0; }
62 public Axiom.Math.Vector3 llVecNorm(Axiom.Math.Vector3 v) { return new Axiom.Math.Vector3(); }
63 public double llVecDist(Axiom.Math.Vector3 a, Axiom.Math.Vector3 b) { return 0; }
64 public Axiom.Math.Vector3 llRot2Euler(Axiom.Math.Quaternion r) { return new Axiom.Math.Vector3(); }
65 public Axiom.Math.Quaternion llEuler2Rot(Axiom.Math.Vector3 v) { return new Axiom.Math.Quaternion(); }
66 public Axiom.Math.Quaternion llAxes2Rot(Axiom.Math.Vector3 fwd, Axiom.Math.Vector3 left, Axiom.Math.Vector3 up) { return new Axiom.Math.Quaternion(); }
67 public Axiom.Math.Vector3 llRot2Fwd(Axiom.Math.Quaternion r) { return new Axiom.Math.Vector3(); }
68 public Axiom.Math.Vector3 llRot2Left(Axiom.Math.Quaternion r) { return new Axiom.Math.Vector3(); }
69 public Axiom.Math.Vector3 llRot2Up(Axiom.Math.Quaternion r) { return new Axiom.Math.Vector3(); }
70 public Axiom.Math.Quaternion llRotBetween(Axiom.Math.Vector3 start, Axiom.Math.Vector3 end) { return new Axiom.Math.Quaternion(); }
71
72 public void llWhisper(int channelID, string text)
73 {
74 //Common.SendToDebug("INTERNAL FUNCTION llWhisper(" + channelID + ", \"" + text + "\");");
75 Console.WriteLine("llWhisper Channel " + channelID + ", Text: \"" + text + "\"");
76 //type for whisper is 0
77 World.SimChat(Helpers.StringToField(text),
78 0, m_host.AbsolutePosition, m_host.Name, m_host.UUID);
79
80
81 }
82 //public void llSay(int channelID, string text)
83 public void llSay(int channelID, string text)
84 {
85 //TODO: DO SOMETHING USEFUL HERE
86 //Common.SendToDebug("INTERNAL FUNCTION llSay(" + (int)channelID + ", \"" + (string)text + "\");");
87 Console.WriteLine("llSay Channel " + channelID + ", Text: \"" + text + "\"");
88 //type for say is 1
89
90 World.SimChat(Helpers.StringToField(text),
91 1, m_host.AbsolutePosition, m_host.Name, m_host.UUID);
92 }
93
94 public void llShout(int channelID, string text)
95 {
96 Console.WriteLine("llShout Channel " + channelID + ", Text: \"" + text + "\"");
97 //type for shout is 2
98 World.SimChat(Helpers.StringToField(text),
99 2, m_host.AbsolutePosition, m_host.Name, m_host.UUID);
100
101 }
102
103 public int llListen(int channelID, string name, string ID, string msg) { return 0; }
104 public void llListenControl(int number, int active) { return; }
105 public void llListenRemove(int number) { return; }
106 public void llSensor(string name, string id, int type, double range, double arc) { return; }
107 public void llSensorRepeat(string name, string id, int type, double range, double arc, double rate) { return; }
108 public void llSensorRemove() { return; }
109 public string llDetectedName(int number) { return ""; }
110 public string llDetectedKey(int number) { return ""; }
111 public string llDetectedOwner(int number) { return ""; }
112 public int llDetectedType(int number) { return 0; }
113 public Axiom.Math.Vector3 llDetectedPos(int number) { return new Axiom.Math.Vector3(); }
114 public Axiom.Math.Vector3 llDetectedVel(int number) { return new Axiom.Math.Vector3(); }
115 public Axiom.Math.Vector3 llDetectedGrab(int number) { return new Axiom.Math.Vector3(); }
116 public Axiom.Math.Quaternion llDetectedRot(int number) { return new Axiom.Math.Quaternion(); }
117 public int llDetectedGroup(int number) { return 0; }
118 public int llDetectedLinkNumber(int number) { return 0; }
119 public void llDie() { return; }
120 public double llGround(Axiom.Math.Vector3 offset) { return 0; }
121 public double llCloud(Axiom.Math.Vector3 offset) { return 0; }
122 public Axiom.Math.Vector3 llWind(Axiom.Math.Vector3 offset) { return new Axiom.Math.Vector3(); }
123 public void llSetStatus(int status, int value) { return; }
124 public int llGetStatus(int status) { return 0; }
125 public void llSetScale(Axiom.Math.Vector3 scale) { return; }
126 public Axiom.Math.Vector3 llGetScale() { return new Axiom.Math.Vector3(); }
127 public void llSetColor(Axiom.Math.Vector3 color, int face) { return; }
128 public double llGetAlpha(int face) { return 0; }
129 public void llSetAlpha(double alpha, int face) { return; }
130 public Axiom.Math.Vector3 llGetColor(int face) { return new Axiom.Math.Vector3(); }
131 public void llSetTexture(string texture, int face) { return; }
132 public void llScaleTexture(double u, double v, int face) { return; }
133 public void llOffsetTexture(double u, double v, int face) { return; }
134 public void llRotateTexture(double rotation, int face) { return; }
135 public string llGetTexture(int face) { return ""; }
136 public void llSetPos(Axiom.Math.Vector3 pos) { return; }
137
138 public Axiom.Math.Vector3 llGetPos()
139 {
140 throw new NotImplementedException("llGetPos");
141 // return m_host.AbsolutePosition;
142 }
143
144 public Axiom.Math.Vector3 llGetLocalPos() { return new Axiom.Math.Vector3(); }
145 public void llSetRot(Axiom.Math.Quaternion rot) { }
146 public Axiom.Math.Quaternion llGetRot() { return new Axiom.Math.Quaternion(); }
147 public Axiom.Math.Quaternion llGetLocalRot() { return new Axiom.Math.Quaternion(); }
148 public void llSetForce(Axiom.Math.Vector3 force, int local) { }
149 public Axiom.Math.Vector3 llGetForce() { return new Axiom.Math.Vector3(); }
150 public int llTarget(Axiom.Math.Vector3 position, double range) { return 0; }
151 public void llTargetRemove(int number) { }
152 public int llRotTarget(Axiom.Math.Quaternion rot, double error) { return 0; }
153 public void llRotTargetRemove(int number) { }
154 public void llMoveToTarget(Axiom.Math.Vector3 target, double tau) { }
155 public void llStopMoveToTarget() { }
156 public void llApplyImpulse(Axiom.Math.Vector3 force, int local) { }
157 public void llApplyRotationalImpulse(Axiom.Math.Vector3 force, int local) { }
158 public void llSetTorque(Axiom.Math.Vector3 torque, int local) { }
159 public Axiom.Math.Vector3 llGetTorque() { return new Axiom.Math.Vector3(); }
160 public void llSetForceAndTorque(Axiom.Math.Vector3 force, Axiom.Math.Vector3 torque, int local) { }
161 public Axiom.Math.Vector3 llGetVel() { return new Axiom.Math.Vector3(); }
162 public Axiom.Math.Vector3 llGetAccel() { return new Axiom.Math.Vector3(); }
163 public Axiom.Math.Vector3 llGetOmega() { return new Axiom.Math.Vector3(); }
164 public double llGetTimeOfDay() { return 0; }
165 public double llGetWallclock() { return 0; }
166 public double llGetTime() { return 0; }
167 public void llResetTime() { }
168 public double llGetAndResetTime() { return 0; }
169 public void llSound() { }
170 public void llPlaySound(string sound, double volume) { }
171 public void llLoopSound(string sound, double volume) { }
172 public void llLoopSoundMaster(string sound, double volume) { }
173 public void llLoopSoundSlave(string sound, double volume) { }
174 public void llPlaySoundSlave(string sound, double volume) { }
175 public void llTriggerSound(string sound, double volume) { }
176 public void llStopSound() { }
177 public void llPreloadSound(string sound) { }
178 public string llGetSubString(string src, int start, int end) { return src.Substring(start, end); }
179 public string llDeleteSubString(string src, int start, int end) { return ""; }
180 public string llInsertString(string dst, int position, string src) { return ""; }
181 public string llToUpper(string src) { return src.ToUpper(); }
182 public string llToLower(string src) { return src.ToLower(); }
183 public int llGiveMoney(string destination, int amount) { return 0; }
184 public void llMakeExplosion() { }
185 public void llMakeFountain() { }
186 public void llMakeSmoke() { }
187 public void llMakeFire() { }
188 public void llRezObject(string inventory, Axiom.Math.Vector3 pos, Axiom.Math.Quaternion rot, int param) { }
189 public void llLookAt(Axiom.Math.Vector3 target, double strength, double damping) { }
190 public void llStopLookAt() { }
191 public void llSetTimerEvent(double sec) { }
192 public void llSleep(double sec) { System.Threading.Thread.Sleep((int)(sec * 1000)); }
193 public double llGetMass() { return 0; }
194 public void llCollisionFilter(string name, string id, int accept) { }
195 public void llTakeControls(int controls, int accept, int pass_on) { }
196 public void llReleaseControls() { }
197 public void llAttachToAvatar(int attachment) { }
198 public void llDetachFromAvatar() { }
199 public void llTakeCamera() { }
200 public void llReleaseCamera() { }
201 public string llGetOwner() { return ""; }
202 public void llInstantMessage(string user, string message) { }
203 public void llEmail(string address, string subject, string message) { }
204 public void llGetNextEmail(string address, string subject) { }
205 public string llGetKey() { return ""; }
206 public void llSetBuoyancy(double buoyancy) { }
207 public void llSetHoverHeight(double height, int water, double tau) { }
208 public void llStopHover() { }
209 public void llMinEventDelay(double delay) { }
210 public void llSoundPreload() { }
211 public void llRotLookAt(Axiom.Math.Quaternion target, double strength, double damping) { }
212
213 public int llStringLength(string str)
214 {
215 if (str.Length > 0)
216 {
217 return str.Length;
218 }
219 else
220 {
221 return 0;
222 }
223 }
224
225 public void llStartAnimation(string anim) { }
226 public void llStopAnimation(string anim) { }
227 public void llPointAt() { }
228 public void llStopPointAt() { }
229 public void llTargetOmega(Axiom.Math.Vector3 axis, double spinrate, double gain) { }
230 public int llGetStartParameter() { return 0; }
231 public void llGodLikeRezObject(string inventory, Axiom.Math.Vector3 pos) { }
232 public void llRequestPermissions(string agent, int perm) { }
233 public string llGetPermissionsKey() { return ""; }
234 public int llGetPermissions() { return 0; }
235 public int llGetLinkNumber() { return 0; }
236 public void llSetLinkColor(int linknumber, Axiom.Math.Vector3 color, int face) { }
237 public void llCreateLink(string target, int parent) { }
238 public void llBreakLink(int linknum) { }
239 public void llBreakAllLinks() { }
240 public string llGetLinkKey(int linknum) { return ""; }
241 public void llGetLinkName(int linknum) { }
242 public int llGetInventoryNumber(int type) { return 0; }
243 public string llGetInventoryName(int type, int number) { return ""; }
244 public void llSetScriptState(string name, int run) { }
245 public double llGetEnergy() { return 1.0f; }
246 public void llGiveInventory(string destination, string inventory) { }
247 public void llRemoveInventory(string item) { }
248
249 public void llSetText(string text, Axiom.Math.Vector3 color, double alpha)
250 {
251 m_host.SetText(text, color, alpha);
252 }
253
254 public double llWater(Axiom.Math.Vector3 offset) { return 0; }
255 public void llPassTouches(int pass) { }
256 public string llRequestAgentData(string id, int data) { return ""; }
257 public string llRequestInventoryData(string name) { return ""; }
258 public void llSetDamage(double damage) { }
259 public void llTeleportAgentHome(string agent) { }
260 public void llModifyLand(int action, int brush) { }
261 public void llCollisionSound(string impact_sound, double impact_volume) { }
262 public void llCollisionSprite(string impact_sprite) { }
263 public string llGetAnimation(string id) { return ""; }
264 public void llResetScript() { }
265 public void llMessageLinked(int linknum, int num, string str, string id) { }
266 public void llPushObject(string target, Axiom.Math.Vector3 impulse, Axiom.Math.Vector3 ang_impulse, int local) { }
267 public void llPassCollisions(int pass) { }
268 public string llGetScriptName() { return ""; }
269 public int llGetNumberOfSides() { return 0; }
270 public Axiom.Math.Quaternion llAxisAngle2Rot(Axiom.Math.Vector3 axis, double angle) { return new Axiom.Math.Quaternion(); }
271 public Axiom.Math.Vector3 llRot2Axis(Axiom.Math.Quaternion rot) { return new Axiom.Math.Vector3(); }
272 public void llRot2Angle() { }
273 public double llAcos(double val) { return (double)Math.Acos(val); }
274 public double llAsin(double val) { return (double)Math.Asin(val); }
275 public double llAngleBetween(Axiom.Math.Quaternion a, Axiom.Math.Quaternion b) { return 0; }
276 public string llGetInventoryKey(string name) { return ""; }
277 public void llAllowInventoryDrop(int add) { }
278 public Axiom.Math.Vector3 llGetSunDirection() { return new Axiom.Math.Vector3(); }
279 public Axiom.Math.Vector3 llGetTextureOffset(int face) { return new Axiom.Math.Vector3(); }
280 public Axiom.Math.Vector3 llGetTextureScale(int side) { return new Axiom.Math.Vector3(); }
281 public double llGetTextureRot(int side) { return 0; }
282 public int llSubStringIndex(string source, string pattern) { return 0; }
283 public string llGetOwnerKey(string id) { return ""; }
284 public Axiom.Math.Vector3 llGetCenterOfMass() { return new Axiom.Math.Vector3(); }
285 public List<string> llListSort(List<string> src, int stride, int ascending)
286 { return new List<string>(); }
287 public int llGetListLength(List<string> src) { return 0; }
288 public int llList2Integer(List<string> src, int index) { return 0; }
289 public double llList2double(List<string> src, int index) { return 0; }
290 public string llList2String(List<string> src, int index) { return ""; }
291 public string llList2Key(List<string> src, int index) { return ""; }
292 public Axiom.Math.Vector3 llList2Vector(List<string> src, int index)
293 { return new Axiom.Math.Vector3(); }
294 public Axiom.Math.Quaternion llList2Rot(List<string> src, int index)
295 { return new Axiom.Math.Quaternion(); }
296 public List<string> llList2List(List<string> src, int start, int end)
297 { return new List<string>(); }
298 public List<string> llDeleteSubList(List<string> src, int start, int end)
299 { return new List<string>(); }
300 public int llGetListEntryType(List<string> src, int index) { return 0; }
301 public string llList2CSV(List<string> src) { return ""; }
302 public List<string> llCSV2List(string src)
303 { return new List<string>(); }
304 public List<string> llListRandomize(List<string> src, int stride)
305 { return new List<string>(); }
306 public List<string> llList2ListStrided(List<string> src, int start, int end, int stride)
307 { return new List<string>(); }
308 public Axiom.Math.Vector3 llGetRegionCorner()
309 { return new Axiom.Math.Vector3(World.RegionInfo.RegionLocX * 256, World.RegionInfo.RegionLocY * 256, 0); }
310 public List<string> llListInsertList(List<string> dest, List<string> src, int start)
311 { return new List<string>(); }
312 public int llListFindList(List<string> src, List<string> test) { return 0; }
313 public string llGetObjectName() { return ""; }
314 public void llSetObjectName(string name) { }
315 public string llGetDate() { return ""; }
316 public int llEdgeOfWorld(Axiom.Math.Vector3 pos, Axiom.Math.Vector3 dir) { return 0; }
317 public int llGetAgentInfo(string id) { return 0; }
318 public void llAdjustSoundVolume(double volume) { }
319 public void llSetSoundQueueing(int queue) { }
320 public void llSetSoundRadius(double radius) { }
321 public string llKey2Name(string id) { return ""; }
322 public void llSetTextureAnim(int mode, int face, int sizex, int sizey, double start, double length, double rate) { }
323 public void llTriggerSoundLimited(string sound, double volume, Axiom.Math.Vector3 top_north_east, Axiom.Math.Vector3 bottom_south_west) { }
324 public void llEjectFromLand(string pest) { }
325 public void llParseString2List() { }
326 public int llOverMyLand(string id) { return 0; }
327 public string llGetLandOwnerAt(Axiom.Math.Vector3 pos) { return ""; }
328 public string llGetNotecardLine(string name, int line) { return ""; }
329 public Axiom.Math.Vector3 llGetAgentSize(string id) { return new Axiom.Math.Vector3(); }
330 public int llSameGroup(string agent) { return 0; }
331 public void llUnSit(string id) { }
332 public Axiom.Math.Vector3 llGroundSlope(Axiom.Math.Vector3 offset) { return new Axiom.Math.Vector3(); }
333 public Axiom.Math.Vector3 llGroundNormal(Axiom.Math.Vector3 offset) { return new Axiom.Math.Vector3(); }
334 public Axiom.Math.Vector3 llGroundContour(Axiom.Math.Vector3 offset) { return new Axiom.Math.Vector3(); }
335 public int llGetAttached() { return 0; }
336 public int llGetFreeMemory() { return 0; }
337 public string llGetRegionName() { return m_manager.RegionName; }
338 public double llGetRegionTimeDilation() { return 1.0f; }
339 public double llGetRegionFPS() { return 10.0f; }
340 public void llParticleSystem(List<Object> rules) { }
341 public void llGroundRepel(double height, int water, double tau) { }
342 public void llGiveInventoryList() { }
343 public void llSetVehicleType(int type) { }
344 public void llSetVehicledoubleParam(int param, double value) { }
345 public void llSetVehicleVectorParam(int param, Axiom.Math.Vector3 vec) { }
346 public void llSetVehicleRotationParam(int param, Axiom.Math.Quaternion rot) { }
347 public void llSetVehicleFlags(int flags) { }
348 public void llRemoveVehicleFlags(int flags) { }
349 public void llSitTarget(Axiom.Math.Vector3 offset, Axiom.Math.Quaternion rot) { }
350 public string llAvatarOnSitTarget() { return ""; }
351 public void llAddToLandPassList(string avatar, double hours) { }
352 public void llSetTouchText(string text)
353 {
354 }
355
356 public void llSetSitText(string text)
357 {
358 }
359 public void llSetCameraEyeOffset(Axiom.Math.Vector3 offset) { }
360 public void llSetCameraAtOffset(Axiom.Math.Vector3 offset) { }
361 public void llDumpList2String() { }
362 public void llScriptDanger(Axiom.Math.Vector3 pos) { }
363 public void llDialog(string avatar, string message, List<string> buttons, int chat_channel) { }
364 public void llVolumeDetect(int detect) { }
365 public void llResetOtherScript(string name) { }
366 public int llGetScriptState(string name) { return 0; }
367 public void llRemoteLoadScript() { }
368 public void llSetRemoteScriptAccessPin(int pin) { }
369 public void llRemoteLoadScriptPin(string target, string name, int pin, int running, int start_param) { }
370 public void llOpenRemoteDataChannel() { }
371 public string llSendRemoteData(string channel, string dest, int idata, string sdata) { return ""; }
372 public void llRemoteDataReply(string channel, string message_id, string sdata, int idata) { }
373 public void llCloseRemoteDataChannel(string channel) { }
374 public string llMD5String(string src, int nonce)
375 {
376 return OpenSim.Framework.Utilities.Util.Md5Hash(src + ":" + nonce.ToString());
377 }
378 public void llSetPrimitiveParams(List<string> rules) { }
379 public string llStringToBase64(string str) { return ""; }
380 public string llBase64ToString(string str) { return ""; }
381 public void llXorBase64Strings() { }
382 public void llRemoteDataSetRegion() { }
383 public double llLog10(double val) { return (double)Math.Log10(val); }
384 public double llLog(double val) { return (double)Math.Log(val); }
385 public List<string> llGetAnimationList(string id) { return new List<string>(); }
386 public void llSetParcelMusicURL(string url) { }
387
388 public Axiom.Math.Vector3 llGetRootPosition()
389 {
390 throw new NotImplementedException("llGetRootPosition");
391 //return m_root.AbsolutePosition;
392 }
393
394 public Axiom.Math.Quaternion llGetRootRotation()
395 {
396 return new Axiom.Math.Quaternion();
397 }
398
399 public string llGetObjectDesc() { return ""; }
400 public void llSetObjectDesc(string desc) { }
401 public string llGetCreator() { return ""; }
402 public string llGetTimestamp() { return ""; }
403 public void llSetLinkAlpha(int linknumber, double alpha, int face) { }
404 public int llGetNumberOfPrims() { return 0; }
405 public string llGetNumberOfNotecardLines(string name) { return ""; }
406 public List<string> llGetBoundingBox(string obj) { return new List<string>(); }
407 public Axiom.Math.Vector3 llGetGeometricCenter() { return new Axiom.Math.Vector3(); }
408 public void llGetPrimitiveParams() { }
409 public string llIntegerToBase64(int number) { return ""; }
410 public int llBase64ToInteger(string str) { return 0; }
411 public double llGetGMTclock() { return 0; }
412 public string llGetSimulatorHostname() { return ""; }
413 public void llSetLocalRot(Axiom.Math.Quaternion rot) { }
414 public List<string> llParseStringKeepNulls(string src, List<string> seperators, List<string> spacers)
415 { return new List<string>(); }
416 public void llRezAtRoot(string inventory, Axiom.Math.Vector3 position, Axiom.Math.Vector3 velocity, Axiom.Math.Quaternion rot, int param) { }
417 public int llGetObjectPermMask(int mask) { return 0; }
418 public void llSetObjectPermMask(int mask, int value) { }
419 public void llGetInventoryPermMask(string item, int mask) { }
420 public void llSetInventoryPermMask(string item, int mask, int value) { }
421 public string llGetInventoryCreator(string item) { return ""; }
422 public void llOwnerSay(string msg) { }
423 public void llRequestSimulatorData(string simulator, int data) { }
424 public void llForceMouselook(int mouselook) { }
425 public double llGetObjectMass(string id) { return 0; }
426 public void llListReplaceList() { }
427 public void llLoadURL(string avatar_id, string message, string url) { }
428 public void llParcelMediaCommandList(List<string> commandList) { }
429 public void llParcelMediaQuery() { }
430
431 public int llModPow(int a, int b, int c)
432 {
433 Int64 tmp = 0;
434 Int64 val = Math.DivRem(Convert.ToInt64(Math.Pow(a, b)), c, out tmp);
435
436 return Convert.ToInt32(tmp);
437 }
438
439 public int llGetInventoryType(string name) { return 0; }
440 public void llSetPayPrice(int price, List<string> quick_pay_buttons) { }
441 public Axiom.Math.Vector3 llGetCameraPos() { return new Axiom.Math.Vector3(); }
442 public Axiom.Math.Quaternion llGetCameraRot() { return new Axiom.Math.Quaternion(); }
443 public void llSetPrimURL() { }
444 public void llRefreshPrimURL() { }
445 public string llEscapeURL(string url) { return ""; }
446 public string llUnescapeURL(string url) { return ""; }
447 public void llMapDestination(string simname, Axiom.Math.Vector3 pos, Axiom.Math.Vector3 look_at) { }
448 public void llAddToLandBanList(string avatar, double hours) { }
449 public void llRemoveFromLandPassList(string avatar) { }
450 public void llRemoveFromLandBanList(string avatar) { }
451 public void llSetCameraParams(List<string> rules) { }
452 public void llClearCameraParams() { }
453 public double llListStatistics(int operation, List<string> src) { return 0; }
454 public int llGetUnixTime()
455 {
456 return OpenSim.Framework.Utilities.Util.UnixTimeSinceEpoch();
457 }
458 public int llGetParcelFlags(Axiom.Math.Vector3 pos) { return 0; }
459 public int llGetRegionFlags() { return 0; }
460 public string llXorBase64StringsCorrect(string str1, string str2) { return ""; }
461 public void llHTTPRequest() { }
462 public void llResetLandBanList() { }
463 public void llResetLandPassList() { }
464 public int llGetParcelPrimCount(Axiom.Math.Vector3 pos, int category, int sim_wide) { return 0; }
465 public List<string> llGetParcelPrimOwners(Axiom.Math.Vector3 pos) { return new List<string>(); }
466 public int llGetObjectPrimCount(string object_id) { return 0; }
467 public int llGetParcelMaxPrims(Axiom.Math.Vector3 pos, int sim_wide) { return 0; }
468 public List<string> llGetParcelDetails(Axiom.Math.Vector3 pos, List<string> param) { return new List<string>(); }
469
470
471 }
472}
diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/Server_API/LSL_BuiltIn_Commands_Interface.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/Server_API/LSL_BuiltIn_Commands_Interface.cs
deleted file mode 100644
index b7fd2d2..0000000
--- a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/Server_API/LSL_BuiltIn_Commands_Interface.cs
+++ /dev/null
@@ -1,629 +0,0 @@
1/*
2* Copyright (c) Contributors, http://www.openmetaverse.org/
3* See CONTRIBUTORS.TXT for a full list of copyright holders.
4*
5* Redistribution and use in source and binary forms, with or without
6* modification, are permitted provided that the following conditions are met:
7* * Redistributions of source code must retain the above copyright
8* notice, this list of conditions and the following disclaimer.
9* * Redistributions in binary form must reproduce the above copyright
10* notice, this list of conditions and the following disclaimer in the
11* documentation and/or other materials provided with the distribution.
12* * Neither the name of the OpenSim Project nor the
13* names of its contributors may be used to endorse or promote products
14* derived from this software without specific prior written permission.
15*
16* THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS AND ANY
17* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19* DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
20* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26*
27*/
28/* Original code: Tedd Hansen */
29using System;
30using System.Collections.Generic;
31using System.Text;
32
33namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler
34{
35 public interface LSL_BuiltIn_Commands_Interface
36 {
37 double llSin(double f);
38 double llCos(double f);
39 double llTan(double f);
40 double llAtan2(double x, double y);
41 double llSqrt(double f);
42 double llPow(double fbase, double fexponent);
43 int llAbs(int i);
44 double llFabs(double f);
45 double llFrand(double mag);
46 int llFloor(double f);
47 int llCeil(double f);
48 int llRound(double f);
49 double llVecMag(Axiom.Math.Vector3 v);
50 Axiom.Math.Vector3 llVecNorm(Axiom.Math.Vector3 v);
51 double llVecDist(Axiom.Math.Vector3 a, Axiom.Math.Vector3 b);
52 Axiom.Math.Vector3 llRot2Euler(Axiom.Math.Quaternion r);
53 Axiom.Math.Quaternion llEuler2Rot(Axiom.Math.Vector3 v);
54 Axiom.Math.Quaternion llAxes2Rot(Axiom.Math.Vector3 fwd, Axiom.Math.Vector3 left, Axiom.Math.Vector3 up);
55 Axiom.Math.Vector3 llRot2Fwd(Axiom.Math.Quaternion r);
56 Axiom.Math.Vector3 llRot2Left(Axiom.Math.Quaternion r);
57 Axiom.Math.Vector3 llRot2Up(Axiom.Math.Quaternion r);
58 Axiom.Math.Quaternion llRotBetween(Axiom.Math.Vector3 start, Axiom.Math.Vector3 end);
59 void llWhisper(int channelID, string text);
60 //void llSay(int channelID, string text);
61 void llSay(int channelID, string text);
62 void llShout(int channelID, string text);
63 int llListen(int channelID, string name, string ID, string msg);
64 void llListenControl(int number, int active);
65 void llListenRemove(int number);
66 void llSensor(string name, string id, int type, double range, double arc);
67 void llSensorRepeat(string name, string id, int type, double range, double arc, double rate);
68 void llSensorRemove();
69 string llDetectedName(int number);
70 string llDetectedKey(int number);
71 string llDetectedOwner(int number);
72 int llDetectedType(int number);
73 Axiom.Math.Vector3 llDetectedPos(int number);
74 Axiom.Math.Vector3 llDetectedVel(int number);
75 Axiom.Math.Vector3 llDetectedGrab(int number);
76 Axiom.Math.Quaternion llDetectedRot(int number);
77 int llDetectedGroup(int number);
78 int llDetectedLinkNumber(int number);
79 void llDie();
80 double llGround(Axiom.Math.Vector3 offset);
81 double llCloud(Axiom.Math.Vector3 offset);
82 Axiom.Math.Vector3 llWind(Axiom.Math.Vector3 offset);
83 void llSetStatus(int status, int value);
84 int llGetStatus(int status);
85 void llSetScale(Axiom.Math.Vector3 scale);
86 Axiom.Math.Vector3 llGetScale();
87 void llSetColor(Axiom.Math.Vector3 color, int face);
88 double llGetAlpha(int face);
89 void llSetAlpha(double alpha, int face);
90 Axiom.Math.Vector3 llGetColor(int face);
91 void llSetTexture(string texture, int face);
92 void llScaleTexture(double u, double v, int face);
93 void llOffsetTexture(double u, double v, int face);
94 void llRotateTexture(double rotation, int face);
95 string llGetTexture(int face);
96 void llSetPos(Axiom.Math.Vector3 pos);
97
98 //wiki: vector llGetPos()
99 Axiom.Math.Vector3 llGetPos();
100 //wiki: vector llGetLocalPos()
101 Axiom.Math.Vector3 llGetLocalPos();
102 //wiki: llSetRot(rotation rot)
103 void llSetRot(Axiom.Math.Quaternion rot);
104 //wiki: rotation llGetRot()
105 Axiom.Math.Quaternion llGetRot();
106 //wiki: rotation llGetLocalRot()
107 Axiom.Math.Quaternion llGetLocalRot();
108 //wiki: llSetForce(vector force, integer local)
109 void llSetForce(Axiom.Math.Vector3 force, int local);
110 //wiki: vector llGetForce()
111 Axiom.Math.Vector3 llGetForce();
112 //wiki: integer llTarget(vector position, double range)
113 int llTarget(Axiom.Math.Vector3 position, double range);
114 //wiki: llTargetRemove(integer number)
115 void llTargetRemove(int number);
116 //wiki: integer llRotTarget(rotation rot, double error)
117 int llRotTarget(Axiom.Math.Quaternion rot, double error);
118 //wiki: integer llRotTargetRemove(integer number)
119 void llRotTargetRemove(int number);
120 //wiki: llMoveToTarget(vector target, double tau)
121 void llMoveToTarget(Axiom.Math.Vector3 target, double tau);
122 //wiki: llStopMoveToTarget()
123 void llStopMoveToTarget();
124 //wiki: llApplyImpulse(vector force, integer local)
125 void llApplyImpulse(Axiom.Math.Vector3 force, int local);
126 //wiki: llapplyRotationalImpulse(vector force, integer local)
127 void llApplyRotationalImpulse(Axiom.Math.Vector3 force, int local);
128 //wiki: llSetTorque(vector torque, integer local)
129 void llSetTorque(Axiom.Math.Vector3 torque, int local);
130 //wiki: vector llGetTorque()
131 Axiom.Math.Vector3 llGetTorque();
132 //wiki: llSeForceAndTorque(vector force, vector torque, integer local)
133 void llSetForceAndTorque(Axiom.Math.Vector3 force, Axiom.Math.Vector3 torque, int local);
134 //wiki: vector llGetVel()
135 Axiom.Math.Vector3 llGetVel();
136 //wiki: vector llGetAccel()
137 Axiom.Math.Vector3 llGetAccel();
138 //wiki: vector llGetOmega()
139 Axiom.Math.Vector3 llGetOmega();
140 //wiki: double llGetTimeOfDay()
141 double llGetTimeOfDay();
142 //wiki: double llGetWallclock()
143 double llGetWallclock();
144 //wiki: double llGetTime()
145 double llGetTime();
146 //wiki: llResetTime()
147 void llResetTime();
148 //wiki: double llGetAndResetTime()
149 double llGetAndResetTime();
150 //wiki (deprecated) llSound(string sound, double volume, integer queue, integer loop)
151 void llSound();
152 //wiki: llPlaySound(string sound, double volume)
153 void llPlaySound(string sound, double volume);
154 //wiki: llLoopSound(string sound, double volume)
155 void llLoopSound(string sound, double volume);
156 //wiki: llLoopSoundMaster(string sound, double volume)
157 void llLoopSoundMaster(string sound, double volume);
158 //wiki: llLoopSoundSlave(string sound, double volume)
159 void llLoopSoundSlave(string sound, double volume);
160 //wiki llPlaySoundSlave(string sound, double volume)
161 void llPlaySoundSlave(string sound, double volume);
162 //wiki: llTriggerSound(string sound, double volume)
163 void llTriggerSound(string sound, double volume);
164 //wiki: llStopSound()
165 void llStopSound();
166 //wiki: llPreloadSound(string sound)
167 void llPreloadSound(string sound);
168 //wiki: string llGetSubString(string src, integer start, integer end)
169 string llGetSubString(string src, int start, int end);
170 //wiki: string llDeleteSubString(string src, integer start, integer end)
171 string llDeleteSubString(string src, int start, int end);
172 //wiki string llInsertString(string dst, integer position, string src)
173 string llInsertString(string dst, int position, string src);
174 //wiki: string llToUpper(string source)
175 string llToUpper(string source);
176 //wiki: string llToLower(string source)
177 string llToLower(string source);
178 //wiki: integer llGiveMoney(key destination, integer amount)
179 int llGiveMoney(string destination, int amount);
180 //wiki: (deprecated)
181 void llMakeExplosion();
182 //wiki: (deprecated)
183 void llMakeFountain();
184 //wiki: (deprecated)
185 void llMakeSmoke();
186 //wiki: (deprecated)
187 void llMakeFire();
188 //wiki: llRezObject(string inventory, vector pos, vector rel, rotation rot, integer param)
189 void llRezObject(string inventory, Axiom.Math.Vector3 pos, Axiom.Math.Quaternion rot, int param);
190 //wiki: llLookAt(vector target, double strength, double damping)
191 void llLookAt(Axiom.Math.Vector3 target, double strength, double damping);
192 //wiki: llStopLookAt()
193 void llStopLookAt();
194 //wiki: llSetTimerEvent(double sec)
195 void llSetTimerEvent(double sec);
196 //wiki: llSleep(double sec)
197 void llSleep(double sec);
198 //wiki: double llGetMass()
199 double llGetMass();
200 //wiki: llCollisionFilter(string name, key id, integer accept)
201 void llCollisionFilter(string name, string id, int accept);
202 //wiki: llTakeControls(integer controls, integer accept, integer pass_on)
203 void llTakeControls(int controls, int accept, int pass_on);
204 //wiki: llReleaseControls()
205 void llReleaseControls();
206 //wiki: llAttachToAvatar(integer attachment)
207 void llAttachToAvatar(int attachment);
208 //wiki: llDetachFromAvatar()
209 void llDetachFromAvatar();
210 //wiki: (deprecated) llTakeCamera()
211 void llTakeCamera();
212 //wiki: (deprecated) llReleaseCamera()
213 void llReleaseCamera();
214 //wiki: key llGetOwner()
215 string llGetOwner();
216 //wiki: llInstantMessage(key user, string message)
217 void llInstantMessage(string user, string message);
218 //wiki: llEmail(string address, string subject, string message)
219 void llEmail(string address, string subject, string message);
220 //wiki: llGetNextEmail(string address, string subject)
221 void llGetNextEmail(string address, string subject);
222 //wiki: key llGetKey()
223 string llGetKey();
224 //wiki: llSetBuoyancy(double buoyancy)
225 void llSetBuoyancy(double buoyancy);
226 //wiki: llSetHoverHeight(double height, integer water, double tau)
227 void llSetHoverHeight(double height, int water, double tau);
228 //wiki: llStopHover
229 void llStopHover();
230 //wiki: llMinEventDelay(double delay)
231 void llMinEventDelay(double delay);
232 //wiki: (deprecated) llSoundPreload()
233 void llSoundPreload();
234 //wiki: llRotLookAt(rotation target, double strength, double damping)
235 void llRotLookAt(Axiom.Math.Quaternion target, double strength, double damping);
236 //wiki: integer llStringLength(string str)
237 int llStringLength(string str);
238 //wiki: llStartAnimation(string anim)
239 void llStartAnimation(string anim);
240 //wiki: llStopAnimation(string anim)
241 void llStopAnimation(string anim);
242 //wiki: (deprecated) llPointAt
243 void llPointAt();
244 //wiki: (deprecated) llStopPointAt
245 void llStopPointAt();
246 //wiki: llTargetOmega(vector axis, double spinrate, double gain)
247 void llTargetOmega(Axiom.Math.Vector3 axis, double spinrate, double gain);
248 //wiki: integer llGetStartParameter()
249 int llGetStartParameter();
250 //wiki: llGodLikeRezObject(key inventory, vector pos)
251 void llGodLikeRezObject(string inventory, Axiom.Math.Vector3 pos);
252 //wiki: llRequestPermissions(key agent, integer perm)
253 void llRequestPermissions(string agent, int perm);
254 //wiki: key llGetPermissionsKey()
255 string llGetPermissionsKey();
256 //wiki: integer llGetPermissions()
257 int llGetPermissions();
258 //wiki integer llGetLinkNumber()
259 int llGetLinkNumber();
260 //wiki: llSetLinkColor(integer linknumber, vector color, integer face)
261 void llSetLinkColor(int linknumber, Axiom.Math.Vector3 color, int face);
262 //wiki: llCreateLink(key target, integer parent)
263 void llCreateLink(string target, int parent);
264 //wiki: llBreakLink(integer linknum)
265 void llBreakLink(int linknum);
266 //wiki: llBreakAllLinks()
267 void llBreakAllLinks();
268 //wiki: key llGetLinkKey(integer linknum)
269 string llGetLinkKey(int linknum);
270 //wiki: llGetLinkName(integer linknum)
271 void llGetLinkName(int linknum);
272 //wiki: integer llGetInventoryNumber(integer type)
273 int llGetInventoryNumber(int type);
274 //wiki: string llGetInventoryName(integer type, integer number)
275 string llGetInventoryName(int type, int number);
276 //wiki: llSetScriptState(string name, integer run)
277 void llSetScriptState(string name, int run);
278 //wiki: double llGetEnergy()
279 double llGetEnergy();
280 //wiki: llGiveInventory(key destination, string inventory)
281 void llGiveInventory(string destination, string inventory);
282 //wiki: llRemoveInventory(string item)
283 void llRemoveInventory(string item);
284 //wiki: llSetText(string text, vector color, double alpha)
285 void llSetText(string text, Axiom.Math.Vector3 color, double alpha);
286 //wiki: double llWater(vector offset)
287 double llWater(Axiom.Math.Vector3 offset);
288 //wiki: llPassTouches(integer pass)
289 void llPassTouches(int pass);
290 //wiki: key llRequestAgentData(key id, integer data)
291 string llRequestAgentData(string id, int data);
292 //wiki: key llRequestInventoryData(string name)
293 string llRequestInventoryData(string name);
294 //wiki: llSetDamage(double damage)
295 void llSetDamage(double damage);
296 //wiki: llTeleportAgentHome(key agent)
297 void llTeleportAgentHome(string agent);
298 //wiki: llModifyLand(integer action, integer brush)
299 void llModifyLand(int action, int brush);
300 //wiki: llCollisionSound(string impact_sound, double impact_volume)
301 void llCollisionSound(string impact_sound, double impact_volume);
302 //wiki: llCollisionSprite(string impact_sprite)
303 void llCollisionSprite(string impact_sprite);
304 //wiki: string llGetAnimation(key id)
305 string llGetAnimation(string id);
306 //wiki: llResetScript()
307 void llResetScript();
308 //wiki: llMessageLinked(integer linknum, integer num, string str, key id)
309 void llMessageLinked(int linknum, int num, string str, string id);
310 //wiki: llPushObject(key target, vector impulse, vector ang_impulse, integer local)
311 void llPushObject(string target, Axiom.Math.Vector3 impulse, Axiom.Math.Vector3 ang_impulse, int local);
312 //wiki: llPassCollisions(integer pass)
313 void llPassCollisions(int pass);
314 //wiki: string llGetScriptName()
315 string llGetScriptName();
316 //wiki: integer llGetNumberOfSides()
317 int llGetNumberOfSides();
318 //wiki: rotation llAxisAngle2Rot(vector axis, double angle)
319 Axiom.Math.Quaternion llAxisAngle2Rot(Axiom.Math.Vector3 axis, double angle);
320 //wiki: vector llRot2Axis(rotation rot)
321 Axiom.Math.Vector3 llRot2Axis(Axiom.Math.Quaternion rot);
322 void llRot2Angle();
323 //wiki: double llAcos(double val)
324 double llAcos(double val);
325 //wiki: double llAsin(double val)
326 double llAsin(double val);
327 //wiki: double llAngleBetween(rotation a, rotation b)
328 double llAngleBetween(Axiom.Math.Quaternion a, Axiom.Math.Quaternion b);
329 //wiki: string llGetInventoryKey(string name)
330 string llGetInventoryKey(string name);
331 //wiki: llAllowInventoryDrop(integer add)
332 void llAllowInventoryDrop(int add);
333 //wiki: vector llGetSunDirection()
334 Axiom.Math.Vector3 llGetSunDirection();
335 //wiki: vector llGetTextureOffset(integer face)
336 Axiom.Math.Vector3 llGetTextureOffset(int face);
337 //wiki: vector llGetTextureScale(integer side)
338 Axiom.Math.Vector3 llGetTextureScale(int side);
339 //wiki: double llGetTextureRot(integer side)
340 double llGetTextureRot(int side);
341 //wiki: integer llSubStringIndex(string source, string pattern)
342 int llSubStringIndex(string source, string pattern);
343 //wiki: key llGetOwnerKey(key id)
344 string llGetOwnerKey(string id);
345 //wiki: vector llGetCenterOfMass()
346 Axiom.Math.Vector3 llGetCenterOfMass();
347 //wiki: list llListSort(list src, integer stride, integer ascending)
348 List<string> llListSort(List<string> src, int stride, int ascending);
349 //integer llGetListLength(list src)
350 int llGetListLength(List<string> src);
351 //wiki: integer llList2Integer(list src, integer index)
352 int llList2Integer(List<string> src, int index);
353 //wiki: double llList2double(list src, integer index)
354 double llList2double(List<string> src, int index);
355 //wiki: string llList2String(list src, integer index)
356 string llList2String(List<string> src, int index);
357 //wiki: key llList2Key(list src, integer index)
358 string llList2Key(List<string> src, int index);
359 //wiki: vector llList2Vector(list src, integer index)
360 Axiom.Math.Vector3 llList2Vector(List<string> src, int index);
361 //wiki rotation llList2Rot(list src, integer index)
362 Axiom.Math.Quaternion llList2Rot(List<string> src, int index);
363 //wiki: list llList2List(list src, integer start, integer end)
364 List<string> llList2List(List<string> src, int start, int end);
365 //wiki: llDeleteSubList(list src, integer start, integer end)
366 List<string> llDeleteSubList(List<string> src, int start, int end);
367 //wiki: integer llGetListEntryType( list src, integer index )
368 int llGetListEntryType(List<string> src, int index);
369 //wiki: string llList2CSV( list src )
370 string llList2CSV(List<string> src);
371 //wiki: list llCSV2List( string src )
372 List<string> llCSV2List(string src);
373 //wiki: list llListRandomize( list src, integer stride )
374 List<string> llListRandomize(List<string> src, int stride);
375 //wiki: list llList2ListStrided( list src, integer start, integer end, integer stride )
376 List<string> llList2ListStrided(List<string> src, int start, int end, int stride);
377 //wiki: vector llGetRegionCorner( )
378 Axiom.Math.Vector3 llGetRegionCorner();
379 //wiki: list llListInsertList( list dest, list src, integer start )
380 List<string> llListInsertList(List<string> dest, List<string> src, int start);
381 //wiki: integer llListFindList( list src, list test )
382 int llListFindList(List<string> src, List<string> test);
383 //wiki: string llGetObjectName()
384 string llGetObjectName();
385 //wiki: llSetObjectName(string name)
386 void llSetObjectName(string name);
387 //wiki: string llGetDate()
388 string llGetDate();
389 //wiki: integer llEdgeOfWorld(vector pos, vector dir)
390 int llEdgeOfWorld(Axiom.Math.Vector3 pos, Axiom.Math.Vector3 dir);
391 //wiki: integer llGetAgentInfo(key id)
392 int llGetAgentInfo(string id);
393 //wiki: llAdjustSoundVolume(double volume)
394 void llAdjustSoundVolume(double volume);
395 //wiki: llSetSoundQueueing(integer queue)
396 void llSetSoundQueueing(int queue);
397 //wiki: llSetSoundRadius(double radius)
398 void llSetSoundRadius(double radius);
399 //wiki: string llKey2Name(key id)
400 string llKey2Name(string id);
401 //wiki: llSetTextureAnim(integer mode, integer face, integer sizex, integer sizey, double start, double length, double rate)
402 void llSetTextureAnim(int mode, int face, int sizex, int sizey, double start, double length, double rate);
403 //wiki: llTriggerSoundLimited(string sound, double volume, vector top_north_east, vector bottom_south_west)
404 void llTriggerSoundLimited(string sound, double volume, Axiom.Math.Vector3 top_north_east, Axiom.Math.Vector3 bottom_south_west);
405 //wiki: llEjectFromLand(key pest)
406 void llEjectFromLand(string pest);
407 void llParseString2List();
408 //wiki: integer llOverMyLand(key id)
409 int llOverMyLand(string id);
410 //wiki: key llGetLandOwnerAt(vector pos)
411 string llGetLandOwnerAt(Axiom.Math.Vector3 pos);
412 //wiki: key llGetNotecardLine(string name, integer line)
413 string llGetNotecardLine(string name, int line);
414 //wiki: vector llGetAgentSize(key id)
415 Axiom.Math.Vector3 llGetAgentSize(string id);
416 //wiki: integer llSameGroup(key agent)
417 int llSameGroup(string agent);
418 //wiki: llUnSit(key id)
419 void llUnSit(string id);
420 //wiki: vector llGroundSlope(vector offset)
421 Axiom.Math.Vector3 llGroundSlope(Axiom.Math.Vector3 offset);
422 //wiki: vector llGroundNormal(vector offset)
423 Axiom.Math.Vector3 llGroundNormal(Axiom.Math.Vector3 offset);
424 //wiki: vector llGroundContour(vector offset)
425 Axiom.Math.Vector3 llGroundContour(Axiom.Math.Vector3 offset);
426 //wiki: integer llGetAttached()
427 int llGetAttached();
428 //wiki: integer llGetFreeMemory()
429 int llGetFreeMemory();
430 //wiki: string llGetRegionName()
431 string llGetRegionName();
432 //wiki: double llGetRegionTimeDilation()
433 double llGetRegionTimeDilation();
434 //wiki: double llGetRegionFPS()
435 double llGetRegionFPS();
436 //wiki: llParticleSystem(List<Object> rules
437 void llParticleSystem(List<Object> rules);
438 //wiki: llGroundRepel(double height, integer water, double tau)
439 void llGroundRepel(double height, int water, double tau);
440 void llGiveInventoryList();
441 //wiki: llSetVehicleType(integer type)
442 void llSetVehicleType(int type);
443 //wiki: llSetVehicledoubleParam(integer param, double value)
444 void llSetVehicledoubleParam(int param, double value);
445 //wiki: llSetVehicleVectorParam(integer param, vector vec)
446 void llSetVehicleVectorParam(int param, Axiom.Math.Vector3 vec);
447 //wiki: llSetVehicleRotationParam(integer param, rotation rot)
448 void llSetVehicleRotationParam(int param, Axiom.Math.Quaternion rot);
449 //wiki: llSetVehicleFlags(integer flags)
450 void llSetVehicleFlags(int flags);
451 //wiki: llRemoveVehicleFlags(integer flags)
452 void llRemoveVehicleFlags(int flags);
453 //wiki: llSitTarget(vector offset, rotation rot)
454 void llSitTarget(Axiom.Math.Vector3 offset, Axiom.Math.Quaternion rot);
455 //wiki key llAvatarOnSitTarget()
456 string llAvatarOnSitTarget();
457 //wiki: llAddToLandPassList(key avatar, double hours)
458 void llAddToLandPassList(string avatar, double hours);
459 //wiki: llSetTouchText(string text)
460 void llSetTouchText(string text);
461 //wiki: llSetSitText(string text)
462 void llSetSitText(string text);
463 //wiki: llSetCameraEyeOffset(vector offset)
464 void llSetCameraEyeOffset(Axiom.Math.Vector3 offset);
465 //wiki: llSeteCameraAtOffset(vector offset)
466 void llSetCameraAtOffset(Axiom.Math.Vector3 offset);
467 void llDumpList2String();
468 //wiki: integer llScriptDanger(vector pos)
469 void llScriptDanger(Axiom.Math.Vector3 pos);
470 //wiki: llDialog( key avatar, string message, list buttons, integer chat_channel )
471 void llDialog(string avatar, string message, List<string> buttons, int chat_channel);
472 //wiki: llVolumeDetect(integer detect)
473 void llVolumeDetect(int detect);
474 //wiki: llResetOtherScript(string name)
475 void llResetOtherScript(string name);
476 //wiki: integer llGetScriptState(string name)
477 int llGetScriptState(string name);
478 //wiki: (deprecated)
479 void llRemoteLoadScript();
480 //wiki: llSetRemoteScriptAccessPin(integer pin)
481 void llSetRemoteScriptAccessPin(int pin);
482 //wiki: llRemoteLoadScriptPin(key target, string name, integer pin, integer running, integer start_param)
483 void llRemoteLoadScriptPin(string target, string name, int pin, int running, int start_param);
484 //wiki: llOpenRemoteDataChannel()
485 void llOpenRemoteDataChannel();
486 //wiki: key llSendRemoteData(key channel, string dest, integer idata, string sdata)
487 string llSendRemoteData(string channel, string dest, int idata, string sdata);
488 //wiki: llRemoteDataReply(key channel, key message_id, string sdata, integer idata)
489 void llRemoteDataReply(string channel, string message_id, string sdata, int idata);
490 //wiki: llCloseRemoteDataChannel(key channel)
491 void llCloseRemoteDataChannel(string channel);
492 //wiki: string llMD5String(string src, integer nonce)
493 string llMD5String(string src, int nonce);
494 //wiki: llSetPrimitiveParams( list rules )
495 void llSetPrimitiveParams(List<string> rules);
496 //wiki: string llStringToBase64(string str)
497 string llStringToBase64(string str);
498 //wiki: string llBase64ToString(string str)
499 string llBase64ToString(string str);
500 //wiki: (deprecated)
501 void llXorBase64Strings();
502 //wiki: llRemoteDataSetRegion()
503 void llRemoteDataSetRegion();
504 //wiki: double llLog10(double val)
505 double llLog10(double val);
506 //wiki: double llLog(double val)
507 double llLog(double val);
508 //wiki: list llGetAnimationList( key id )
509 List<string> llGetAnimationList(string id);
510 //wiki: llSetParcelMusicURL(string url)
511 void llSetParcelMusicURL(string url);
512 //wiki: vector llGetRootPosition()
513 Axiom.Math.Vector3 llGetRootPosition();
514 //wiki: rotation llGetRootRotation()
515 Axiom.Math.Quaternion llGetRootRotation();
516 //wiki: string llGetObjectDesc()
517 string llGetObjectDesc();
518 //wiki: llSetObjectDesc(string desc)
519 void llSetObjectDesc(string desc);
520 //wiki: key llGetCreator()
521 string llGetCreator();
522 //wiki: string llGetTimestamp()
523 string llGetTimestamp();
524 //wiki: llSetLinkAlpha(integer linknumber, double alpha, integer face)
525 void llSetLinkAlpha(int linknumber, double alpha, int face);
526 //wiki: integer llGetNumberOfPrims()
527 int llGetNumberOfPrims();
528 //wiki: key llGetNumberOfNotecardLines(string name)
529 string llGetNumberOfNotecardLines(string name);
530 //wiki: list llGetBoundingBox( key object )
531 List<string> llGetBoundingBox(string obj);
532 //wiki: vector llGetGeometricCenter()
533 Axiom.Math.Vector3 llGetGeometricCenter();
534 void llGetPrimitiveParams();
535 //wiki: string llIntegerToBase64(integer number)
536 string llIntegerToBase64(int number);
537 //wiki integer llBase64ToInteger(string str)
538 int llBase64ToInteger(string str);
539 //wiki: double llGetGMTclock()
540 double llGetGMTclock();
541 //wiki: string llGetSimulatorHostname()
542 string llGetSimulatorHostname();
543 //llSetLocalRot(rotation rot)
544 void llSetLocalRot(Axiom.Math.Quaternion rot);
545 //wiki: list llParseStringKeepNulls( string src, list separators, list spacers )
546 List<string> llParseStringKeepNulls(string src, List<string> seperators, List<string> spacers);
547 //wiki: llRezAtRoot(string inventory, vector position, vector velocity, rotation rot, integer param)
548 void llRezAtRoot(string inventory, Axiom.Math.Vector3 position, Axiom.Math.Vector3 velocity, Axiom.Math.Quaternion rot, int param);
549 //wiki: integer llGetObjectPermMask(integer mask)
550 int llGetObjectPermMask(int mask);
551 //wiki: llSetObjectPermMask(integer mask, integer value)
552 void llSetObjectPermMask(int mask, int value);
553 //wiki integer llGetInventoryPermMask(string item, integer mask)
554 void llGetInventoryPermMask(string item, int mask);
555 //wiki: llSetInventoryPermMask(string item, integer mask, integer value)
556 void llSetInventoryPermMask(string item, int mask, int value);
557 //wiki: key llGetInventoryCreator(string item)
558 string llGetInventoryCreator(string item);
559 //wiki: llOwnerSay(string msg)
560 void llOwnerSay(string msg);
561 //wiki: key llRequestSimulatorData(string simulator, integer data)
562 void llRequestSimulatorData(string simulator, int data);
563 //wiki: llForceMouselook(integer mouselook)
564 void llForceMouselook(int mouselook);
565 //wiki: double llGetObjectMass(key id)
566 double llGetObjectMass(string id);
567 void llListReplaceList();
568 //wiki: llLoadURL(key avatar_id, string message, string url)
569 void llLoadURL(string avatar_id, string message, string url);
570 //wiki: llParcelMediaCommandList( list commandList )
571 void llParcelMediaCommandList(List<string> commandList);
572 void llParcelMediaQuery();
573 //wiki integer llModPow(integer a, integer b, integer c)
574 int llModPow(int a, int b, int c);
575 //wiki: integer llGetInventoryType(string name)
576 int llGetInventoryType(string name);
577 //wiki: llSetPayPrice( integer price, list quick_pay_buttons )
578 void llSetPayPrice(int price, List<string> quick_pay_buttons);
579 //wiki: vector llGetCameraPos()
580 Axiom.Math.Vector3 llGetCameraPos();
581 //wiki rotation llGetCameraRot()
582 Axiom.Math.Quaternion llGetCameraRot();
583 //wiki: (deprecated)
584 void llSetPrimURL();
585 //wiki: (deprecated)
586 void llRefreshPrimURL();
587 //wiki: string llEscapeURL(string url)
588 string llEscapeURL(string url);
589 //wiki: string llUnescapeURL(string url)
590 string llUnescapeURL(string url);
591 //wiki: llMapDestination(string simname, vector pos, vector look_at)
592 void llMapDestination(string simname, Axiom.Math.Vector3 pos, Axiom.Math.Vector3 look_at);
593 //wiki: llAddToLandBanList(key avatar, double hours)
594 void llAddToLandBanList(string avatar, double hours);
595 //wiki: llRemoveFromLandPassList(key avatar)
596 void llRemoveFromLandPassList(string avatar);
597 //wiki: llRemoveFromLandBanList(key avatar)
598 void llRemoveFromLandBanList(string avatar);
599 //wiki: llSetCameraParams( list rules )
600 void llSetCameraParams(List<string> rules);
601 //wiki: llClearCameraParams()
602 void llClearCameraParams();
603 //wiki: double llListStatistics( integer operation, list src )
604 double llListStatistics(int operation, List<string> src);
605 //wiki: integer llGetUnixTime()
606 int llGetUnixTime();
607 //wiki: integer llGetParcelFlags(vector pos)
608 int llGetParcelFlags(Axiom.Math.Vector3 pos);
609 //wiki: integer llGetRegionFlags()
610 int llGetRegionFlags();
611 //wiki: string llXorBase64StringsCorrect(string str1, string str2)
612 string llXorBase64StringsCorrect(string str1, string str2);
613 void llHTTPRequest();
614 //wiki: llResetLandBanList()
615 void llResetLandBanList();
616 //wiki: llResetLandPassList()
617 void llResetLandPassList();
618 //wiki integer llGetParcelPrimCount(vector pos, integer category, integer sim_wide)
619 int llGetParcelPrimCount(Axiom.Math.Vector3 pos, int category, int sim_wide);
620 //wiki: list llGetParcelPrimOwners( vector pos )
621 List<string> llGetParcelPrimOwners(Axiom.Math.Vector3 pos);
622 //wiki: integer llGetObjectPrimCount(key object_id)
623 int llGetObjectPrimCount(string object_id);
624 //wiki: integer llGetParcelMaxPrims( vector pos, integer sim_wide )
625 int llGetParcelMaxPrims(Axiom.Math.Vector3 pos, int sim_wide);
626 //wiki list llGetParcelDetails(vector pos, list params)
627 List<string> llGetParcelDetails(Axiom.Math.Vector3 pos, List<string> param);
628 }
629}