diff options
author | Tedd Hansen | 2007-08-18 20:53:13 +0000 |
---|---|---|
committer | Tedd Hansen | 2007-08-18 20:53:13 +0000 |
commit | 551f2af39f2bc003bef9ba388ccb4a6d87f2f36b (patch) | |
tree | 6338597d88a959f5d9391439fb2bb4978b897df5 /OpenSim/Region/ScriptEngine/Common | |
parent | Working on AppDomains. Scripting is now officially broken. :] (diff) | |
download | opensim-SC_OLD-551f2af39f2bc003bef9ba388ccb4a6d87f2f36b.zip opensim-SC_OLD-551f2af39f2bc003bef9ba388ccb4a6d87f2f36b.tar.gz opensim-SC_OLD-551f2af39f2bc003bef9ba388ccb4a6d87f2f36b.tar.bz2 opensim-SC_OLD-551f2af39f2bc003bef9ba388ccb4a6d87f2f36b.tar.xz |
LSL Compiler now only referring required assemblies (DotNetEngine and Common). Changed Vector and Rotation to custom types (stored in Common) that needs to be changed later. No longer using Axiom. Script support still broken.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands_Interface.cs | 170 | ||||
-rw-r--r-- | OpenSim/Region/ScriptEngine/Common/LSL_Types.cs | 53 |
2 files changed, 138 insertions, 85 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands_Interface.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands_Interface.cs index c56ff2f..beddbc5 100644 --- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands_Interface.cs +++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands_Interface.cs | |||
@@ -48,16 +48,16 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
48 | int llFloor(double f); | 48 | int llFloor(double f); |
49 | int llCeil(double f); | 49 | int llCeil(double f); |
50 | int llRound(double f); | 50 | int llRound(double f); |
51 | double llVecMag(Axiom.Math.Vector3 v); | 51 | double llVecMag(LSL_Types.Vector3 v); |
52 | Axiom.Math.Vector3 llVecNorm(Axiom.Math.Vector3 v); | 52 | LSL_Types.Vector3 llVecNorm(LSL_Types.Vector3 v); |
53 | double llVecDist(Axiom.Math.Vector3 a, Axiom.Math.Vector3 b); | 53 | double llVecDist(LSL_Types.Vector3 a, LSL_Types.Vector3 b); |
54 | Axiom.Math.Vector3 llRot2Euler(Axiom.Math.Quaternion r); | 54 | LSL_Types.Vector3 llRot2Euler(LSL_Types.Quaternion r); |
55 | Axiom.Math.Quaternion llEuler2Rot(Axiom.Math.Vector3 v); | 55 | LSL_Types.Quaternion llEuler2Rot(LSL_Types.Vector3 v); |
56 | Axiom.Math.Quaternion llAxes2Rot(Axiom.Math.Vector3 fwd, Axiom.Math.Vector3 left, Axiom.Math.Vector3 up); | 56 | LSL_Types.Quaternion llAxes2Rot(LSL_Types.Vector3 fwd, LSL_Types.Vector3 left, LSL_Types.Vector3 up); |
57 | Axiom.Math.Vector3 llRot2Fwd(Axiom.Math.Quaternion r); | 57 | LSL_Types.Vector3 llRot2Fwd(LSL_Types.Quaternion r); |
58 | Axiom.Math.Vector3 llRot2Left(Axiom.Math.Quaternion r); | 58 | LSL_Types.Vector3 llRot2Left(LSL_Types.Quaternion r); |
59 | Axiom.Math.Vector3 llRot2Up(Axiom.Math.Quaternion r); | 59 | LSL_Types.Vector3 llRot2Up(LSL_Types.Quaternion r); |
60 | Axiom.Math.Quaternion llRotBetween(Axiom.Math.Vector3 start, Axiom.Math.Vector3 end); | 60 | LSL_Types.Quaternion llRotBetween(LSL_Types.Vector3 start, LSL_Types.Vector3 end); |
61 | void llWhisper(int channelID, string text); | 61 | void llWhisper(int channelID, string text); |
62 | //void llSay(int channelID, string text); | 62 | //void llSay(int channelID, string text); |
63 | void llSay(int channelID, string text); | 63 | void llSay(int channelID, string text); |
@@ -72,73 +72,73 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
72 | string llDetectedKey(int number); | 72 | string llDetectedKey(int number); |
73 | string llDetectedOwner(int number); | 73 | string llDetectedOwner(int number); |
74 | int llDetectedType(int number); | 74 | int llDetectedType(int number); |
75 | Axiom.Math.Vector3 llDetectedPos(int number); | 75 | LSL_Types.Vector3 llDetectedPos(int number); |
76 | Axiom.Math.Vector3 llDetectedVel(int number); | 76 | LSL_Types.Vector3 llDetectedVel(int number); |
77 | Axiom.Math.Vector3 llDetectedGrab(int number); | 77 | LSL_Types.Vector3 llDetectedGrab(int number); |
78 | Axiom.Math.Quaternion llDetectedRot(int number); | 78 | LSL_Types.Quaternion llDetectedRot(int number); |
79 | int llDetectedGroup(int number); | 79 | int llDetectedGroup(int number); |
80 | int llDetectedLinkNumber(int number); | 80 | int llDetectedLinkNumber(int number); |
81 | void llDie(); | 81 | void llDie(); |
82 | double llGround(Axiom.Math.Vector3 offset); | 82 | double llGround(LSL_Types.Vector3 offset); |
83 | double llCloud(Axiom.Math.Vector3 offset); | 83 | double llCloud(LSL_Types.Vector3 offset); |
84 | Axiom.Math.Vector3 llWind(Axiom.Math.Vector3 offset); | 84 | LSL_Types.Vector3 llWind(LSL_Types.Vector3 offset); |
85 | void llSetStatus(int status, int value); | 85 | void llSetStatus(int status, int value); |
86 | int llGetStatus(int status); | 86 | int llGetStatus(int status); |
87 | void llSetScale(Axiom.Math.Vector3 scale); | 87 | void llSetScale(LSL_Types.Vector3 scale); |
88 | Axiom.Math.Vector3 llGetScale(); | 88 | LSL_Types.Vector3 llGetScale(); |
89 | void llSetColor(Axiom.Math.Vector3 color, int face); | 89 | void llSetColor(LSL_Types.Vector3 color, int face); |
90 | double llGetAlpha(int face); | 90 | double llGetAlpha(int face); |
91 | void llSetAlpha(double alpha, int face); | 91 | void llSetAlpha(double alpha, int face); |
92 | Axiom.Math.Vector3 llGetColor(int face); | 92 | LSL_Types.Vector3 llGetColor(int face); |
93 | void llSetTexture(string texture, int face); | 93 | void llSetTexture(string texture, int face); |
94 | void llScaleTexture(double u, double v, int face); | 94 | void llScaleTexture(double u, double v, int face); |
95 | void llOffsetTexture(double u, double v, int face); | 95 | void llOffsetTexture(double u, double v, int face); |
96 | void llRotateTexture(double rotation, int face); | 96 | void llRotateTexture(double rotation, int face); |
97 | string llGetTexture(int face); | 97 | string llGetTexture(int face); |
98 | void llSetPos(Axiom.Math.Vector3 pos); | 98 | void llSetPos(LSL_Types.Vector3 pos); |
99 | 99 | ||
100 | //wiki: vector llGetPos() | 100 | //wiki: vector llGetPos() |
101 | Axiom.Math.Vector3 llGetPos(); | 101 | LSL_Types.Vector3 llGetPos(); |
102 | //wiki: vector llGetLocalPos() | 102 | //wiki: vector llGetLocalPos() |
103 | Axiom.Math.Vector3 llGetLocalPos(); | 103 | LSL_Types.Vector3 llGetLocalPos(); |
104 | //wiki: llSetRot(rotation rot) | 104 | //wiki: llSetRot(rotation rot) |
105 | void llSetRot(Axiom.Math.Quaternion rot); | 105 | void llSetRot(LSL_Types.Quaternion rot); |
106 | //wiki: rotation llGetRot() | 106 | //wiki: rotation llGetRot() |
107 | Axiom.Math.Quaternion llGetRot(); | 107 | LSL_Types.Quaternion llGetRot(); |
108 | //wiki: rotation llGetLocalRot() | 108 | //wiki: rotation llGetLocalRot() |
109 | Axiom.Math.Quaternion llGetLocalRot(); | 109 | LSL_Types.Quaternion llGetLocalRot(); |
110 | //wiki: llSetForce(vector force, integer local) | 110 | //wiki: llSetForce(vector force, integer local) |
111 | void llSetForce(Axiom.Math.Vector3 force, int local); | 111 | void llSetForce(LSL_Types.Vector3 force, int local); |
112 | //wiki: vector llGetForce() | 112 | //wiki: vector llGetForce() |
113 | Axiom.Math.Vector3 llGetForce(); | 113 | LSL_Types.Vector3 llGetForce(); |
114 | //wiki: integer llTarget(vector position, double range) | 114 | //wiki: integer llTarget(vector position, double range) |
115 | int llTarget(Axiom.Math.Vector3 position, double range); | 115 | int llTarget(LSL_Types.Vector3 position, double range); |
116 | //wiki: llTargetRemove(integer number) | 116 | //wiki: llTargetRemove(integer number) |
117 | void llTargetRemove(int number); | 117 | void llTargetRemove(int number); |
118 | //wiki: integer llRotTarget(rotation rot, double error) | 118 | //wiki: integer llRotTarget(rotation rot, double error) |
119 | int llRotTarget(Axiom.Math.Quaternion rot, double error); | 119 | int llRotTarget(LSL_Types.Quaternion rot, double error); |
120 | //wiki: integer llRotTargetRemove(integer number) | 120 | //wiki: integer llRotTargetRemove(integer number) |
121 | void llRotTargetRemove(int number); | 121 | void llRotTargetRemove(int number); |
122 | //wiki: llMoveToTarget(vector target, double tau) | 122 | //wiki: llMoveToTarget(vector target, double tau) |
123 | void llMoveToTarget(Axiom.Math.Vector3 target, double tau); | 123 | void llMoveToTarget(LSL_Types.Vector3 target, double tau); |
124 | //wiki: llStopMoveToTarget() | 124 | //wiki: llStopMoveToTarget() |
125 | void llStopMoveToTarget(); | 125 | void llStopMoveToTarget(); |
126 | //wiki: llApplyImpulse(vector force, integer local) | 126 | //wiki: llApplyImpulse(vector force, integer local) |
127 | void llApplyImpulse(Axiom.Math.Vector3 force, int local); | 127 | void llApplyImpulse(LSL_Types.Vector3 force, int local); |
128 | //wiki: llapplyRotationalImpulse(vector force, integer local) | 128 | //wiki: llapplyRotationalImpulse(vector force, integer local) |
129 | void llApplyRotationalImpulse(Axiom.Math.Vector3 force, int local); | 129 | void llApplyRotationalImpulse(LSL_Types.Vector3 force, int local); |
130 | //wiki: llSetTorque(vector torque, integer local) | 130 | //wiki: llSetTorque(vector torque, integer local) |
131 | void llSetTorque(Axiom.Math.Vector3 torque, int local); | 131 | void llSetTorque(LSL_Types.Vector3 torque, int local); |
132 | //wiki: vector llGetTorque() | 132 | //wiki: vector llGetTorque() |
133 | Axiom.Math.Vector3 llGetTorque(); | 133 | LSL_Types.Vector3 llGetTorque(); |
134 | //wiki: llSeForceAndTorque(vector force, vector torque, integer local) | 134 | //wiki: llSeForceAndTorque(vector force, vector torque, integer local) |
135 | void llSetForceAndTorque(Axiom.Math.Vector3 force, Axiom.Math.Vector3 torque, int local); | 135 | void llSetForceAndTorque(LSL_Types.Vector3 force, LSL_Types.Vector3 torque, int local); |
136 | //wiki: vector llGetVel() | 136 | //wiki: vector llGetVel() |
137 | Axiom.Math.Vector3 llGetVel(); | 137 | LSL_Types.Vector3 llGetVel(); |
138 | //wiki: vector llGetAccel() | 138 | //wiki: vector llGetAccel() |
139 | Axiom.Math.Vector3 llGetAccel(); | 139 | LSL_Types.Vector3 llGetAccel(); |
140 | //wiki: vector llGetOmega() | 140 | //wiki: vector llGetOmega() |
141 | Axiom.Math.Vector3 llGetOmega(); | 141 | LSL_Types.Vector3 llGetOmega(); |
142 | //wiki: double llGetTimeOfDay() | 142 | //wiki: double llGetTimeOfDay() |
143 | double llGetTimeOfDay(); | 143 | double llGetTimeOfDay(); |
144 | //wiki: double llGetWallclock() | 144 | //wiki: double llGetWallclock() |
@@ -188,9 +188,9 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
188 | //wiki: (deprecated) | 188 | //wiki: (deprecated) |
189 | void llMakeFire(); | 189 | void llMakeFire(); |
190 | //wiki: llRezObject(string inventory, vector pos, vector rel, rotation rot, integer param) | 190 | //wiki: llRezObject(string inventory, vector pos, vector rel, rotation rot, integer param) |
191 | void llRezObject(string inventory, Axiom.Math.Vector3 pos, Axiom.Math.Quaternion rot, int param); | 191 | void llRezObject(string inventory, LSL_Types.Vector3 pos, LSL_Types.Quaternion rot, int param); |
192 | //wiki: llLookAt(vector target, double strength, double damping) | 192 | //wiki: llLookAt(vector target, double strength, double damping) |
193 | void llLookAt(Axiom.Math.Vector3 target, double strength, double damping); | 193 | void llLookAt(LSL_Types.Vector3 target, double strength, double damping); |
194 | //wiki: llStopLookAt() | 194 | //wiki: llStopLookAt() |
195 | void llStopLookAt(); | 195 | void llStopLookAt(); |
196 | //wiki: llSetTimerEvent(double sec) | 196 | //wiki: llSetTimerEvent(double sec) |
@@ -234,7 +234,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
234 | //wiki: (deprecated) llSoundPreload() | 234 | //wiki: (deprecated) llSoundPreload() |
235 | void llSoundPreload(); | 235 | void llSoundPreload(); |
236 | //wiki: llRotLookAt(rotation target, double strength, double damping) | 236 | //wiki: llRotLookAt(rotation target, double strength, double damping) |
237 | void llRotLookAt(Axiom.Math.Quaternion target, double strength, double damping); | 237 | void llRotLookAt(LSL_Types.Quaternion target, double strength, double damping); |
238 | //wiki: integer llStringLength(string str) | 238 | //wiki: integer llStringLength(string str) |
239 | int llStringLength(string str); | 239 | int llStringLength(string str); |
240 | //wiki: llStartAnimation(string anim) | 240 | //wiki: llStartAnimation(string anim) |
@@ -246,11 +246,11 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
246 | //wiki: (deprecated) llStopPointAt | 246 | //wiki: (deprecated) llStopPointAt |
247 | void llStopPointAt(); | 247 | void llStopPointAt(); |
248 | //wiki: llTargetOmega(vector axis, double spinrate, double gain) | 248 | //wiki: llTargetOmega(vector axis, double spinrate, double gain) |
249 | void llTargetOmega(Axiom.Math.Vector3 axis, double spinrate, double gain); | 249 | void llTargetOmega(LSL_Types.Vector3 axis, double spinrate, double gain); |
250 | //wiki: integer llGetStartParameter() | 250 | //wiki: integer llGetStartParameter() |
251 | int llGetStartParameter(); | 251 | int llGetStartParameter(); |
252 | //wiki: llGodLikeRezObject(key inventory, vector pos) | 252 | //wiki: llGodLikeRezObject(key inventory, vector pos) |
253 | void llGodLikeRezObject(string inventory, Axiom.Math.Vector3 pos); | 253 | void llGodLikeRezObject(string inventory, LSL_Types.Vector3 pos); |
254 | //wiki: llRequestPermissions(key agent, integer perm) | 254 | //wiki: llRequestPermissions(key agent, integer perm) |
255 | void llRequestPermissions(string agent, int perm); | 255 | void llRequestPermissions(string agent, int perm); |
256 | //wiki: key llGetPermissionsKey() | 256 | //wiki: key llGetPermissionsKey() |
@@ -260,7 +260,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
260 | //wiki integer llGetLinkNumber() | 260 | //wiki integer llGetLinkNumber() |
261 | int llGetLinkNumber(); | 261 | int llGetLinkNumber(); |
262 | //wiki: llSetLinkColor(integer linknumber, vector color, integer face) | 262 | //wiki: llSetLinkColor(integer linknumber, vector color, integer face) |
263 | void llSetLinkColor(int linknumber, Axiom.Math.Vector3 color, int face); | 263 | void llSetLinkColor(int linknumber, LSL_Types.Vector3 color, int face); |
264 | //wiki: llCreateLink(key target, integer parent) | 264 | //wiki: llCreateLink(key target, integer parent) |
265 | void llCreateLink(string target, int parent); | 265 | void llCreateLink(string target, int parent); |
266 | //wiki: llBreakLink(integer linknum) | 266 | //wiki: llBreakLink(integer linknum) |
@@ -284,9 +284,9 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
284 | //wiki: llRemoveInventory(string item) | 284 | //wiki: llRemoveInventory(string item) |
285 | void llRemoveInventory(string item); | 285 | void llRemoveInventory(string item); |
286 | //wiki: llSetText(string text, vector color, double alpha) | 286 | //wiki: llSetText(string text, vector color, double alpha) |
287 | void llSetText(string text, Axiom.Math.Vector3 color, double alpha); | 287 | void llSetText(string text, LSL_Types.Vector3 color, double alpha); |
288 | //wiki: double llWater(vector offset) | 288 | //wiki: double llWater(vector offset) |
289 | double llWater(Axiom.Math.Vector3 offset); | 289 | double llWater(LSL_Types.Vector3 offset); |
290 | //wiki: llPassTouches(integer pass) | 290 | //wiki: llPassTouches(integer pass) |
291 | void llPassTouches(int pass); | 291 | void llPassTouches(int pass); |
292 | //wiki: key llRequestAgentData(key id, integer data) | 292 | //wiki: key llRequestAgentData(key id, integer data) |
@@ -310,7 +310,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
310 | //wiki: llMessageLinked(integer linknum, integer num, string str, key id) | 310 | //wiki: llMessageLinked(integer linknum, integer num, string str, key id) |
311 | void llMessageLinked(int linknum, int num, string str, string id); | 311 | void llMessageLinked(int linknum, int num, string str, string id); |
312 | //wiki: llPushObject(key target, vector impulse, vector ang_impulse, integer local) | 312 | //wiki: llPushObject(key target, vector impulse, vector ang_impulse, integer local) |
313 | void llPushObject(string target, Axiom.Math.Vector3 impulse, Axiom.Math.Vector3 ang_impulse, int local); | 313 | void llPushObject(string target, LSL_Types.Vector3 impulse, LSL_Types.Vector3 ang_impulse, int local); |
314 | //wiki: llPassCollisions(integer pass) | 314 | //wiki: llPassCollisions(integer pass) |
315 | void llPassCollisions(int pass); | 315 | void llPassCollisions(int pass); |
316 | //wiki: string llGetScriptName() | 316 | //wiki: string llGetScriptName() |
@@ -318,26 +318,26 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
318 | //wiki: integer llGetNumberOfSides() | 318 | //wiki: integer llGetNumberOfSides() |
319 | int llGetNumberOfSides(); | 319 | int llGetNumberOfSides(); |
320 | //wiki: rotation llAxisAngle2Rot(vector axis, double angle) | 320 | //wiki: rotation llAxisAngle2Rot(vector axis, double angle) |
321 | Axiom.Math.Quaternion llAxisAngle2Rot(Axiom.Math.Vector3 axis, double angle); | 321 | LSL_Types.Quaternion llAxisAngle2Rot(LSL_Types.Vector3 axis, double angle); |
322 | //wiki: vector llRot2Axis(rotation rot) | 322 | //wiki: vector llRot2Axis(rotation rot) |
323 | Axiom.Math.Vector3 llRot2Axis(Axiom.Math.Quaternion rot); | 323 | LSL_Types.Vector3 llRot2Axis(LSL_Types.Quaternion rot); |
324 | void llRot2Angle(); | 324 | void llRot2Angle(); |
325 | //wiki: double llAcos(double val) | 325 | //wiki: double llAcos(double val) |
326 | double llAcos(double val); | 326 | double llAcos(double val); |
327 | //wiki: double llAsin(double val) | 327 | //wiki: double llAsin(double val) |
328 | double llAsin(double val); | 328 | double llAsin(double val); |
329 | //wiki: double llAngleBetween(rotation a, rotation b) | 329 | //wiki: double llAngleBetween(rotation a, rotation b) |
330 | double llAngleBetween(Axiom.Math.Quaternion a, Axiom.Math.Quaternion b); | 330 | double llAngleBetween(LSL_Types.Quaternion a, LSL_Types.Quaternion b); |
331 | //wiki: string llGetInventoryKey(string name) | 331 | //wiki: string llGetInventoryKey(string name) |
332 | string llGetInventoryKey(string name); | 332 | string llGetInventoryKey(string name); |
333 | //wiki: llAllowInventoryDrop(integer add) | 333 | //wiki: llAllowInventoryDrop(integer add) |
334 | void llAllowInventoryDrop(int add); | 334 | void llAllowInventoryDrop(int add); |
335 | //wiki: vector llGetSunDirection() | 335 | //wiki: vector llGetSunDirection() |
336 | Axiom.Math.Vector3 llGetSunDirection(); | 336 | LSL_Types.Vector3 llGetSunDirection(); |
337 | //wiki: vector llGetTextureOffset(integer face) | 337 | //wiki: vector llGetTextureOffset(integer face) |
338 | Axiom.Math.Vector3 llGetTextureOffset(int face); | 338 | LSL_Types.Vector3 llGetTextureOffset(int face); |
339 | //wiki: vector llGetTextureScale(integer side) | 339 | //wiki: vector llGetTextureScale(integer side) |
340 | Axiom.Math.Vector3 llGetTextureScale(int side); | 340 | LSL_Types.Vector3 llGetTextureScale(int side); |
341 | //wiki: double llGetTextureRot(integer side) | 341 | //wiki: double llGetTextureRot(integer side) |
342 | double llGetTextureRot(int side); | 342 | double llGetTextureRot(int side); |
343 | //wiki: integer llSubStringIndex(string source, string pattern) | 343 | //wiki: integer llSubStringIndex(string source, string pattern) |
@@ -345,7 +345,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
345 | //wiki: key llGetOwnerKey(key id) | 345 | //wiki: key llGetOwnerKey(key id) |
346 | string llGetOwnerKey(string id); | 346 | string llGetOwnerKey(string id); |
347 | //wiki: vector llGetCenterOfMass() | 347 | //wiki: vector llGetCenterOfMass() |
348 | Axiom.Math.Vector3 llGetCenterOfMass(); | 348 | LSL_Types.Vector3 llGetCenterOfMass(); |
349 | //wiki: list llListSort(list src, integer stride, integer ascending) | 349 | //wiki: list llListSort(list src, integer stride, integer ascending) |
350 | List<string> llListSort(List<string> src, int stride, int ascending); | 350 | List<string> llListSort(List<string> src, int stride, int ascending); |
351 | //integer llGetListLength(list src) | 351 | //integer llGetListLength(list src) |
@@ -359,9 +359,9 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
359 | //wiki: key llList2Key(list src, integer index) | 359 | //wiki: key llList2Key(list src, integer index) |
360 | string llList2Key(List<string> src, int index); | 360 | string llList2Key(List<string> src, int index); |
361 | //wiki: vector llList2Vector(list src, integer index) | 361 | //wiki: vector llList2Vector(list src, integer index) |
362 | Axiom.Math.Vector3 llList2Vector(List<string> src, int index); | 362 | LSL_Types.Vector3 llList2Vector(List<string> src, int index); |
363 | //wiki rotation llList2Rot(list src, integer index) | 363 | //wiki rotation llList2Rot(list src, integer index) |
364 | Axiom.Math.Quaternion llList2Rot(List<string> src, int index); | 364 | LSL_Types.Quaternion llList2Rot(List<string> src, int index); |
365 | //wiki: list llList2List(list src, integer start, integer end) | 365 | //wiki: list llList2List(list src, integer start, integer end) |
366 | List<string> llList2List(List<string> src, int start, int end); | 366 | List<string> llList2List(List<string> src, int start, int end); |
367 | //wiki: llDeleteSubList(list src, integer start, integer end) | 367 | //wiki: llDeleteSubList(list src, integer start, integer end) |
@@ -377,7 +377,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
377 | //wiki: list llList2ListStrided( list src, integer start, integer end, integer stride ) | 377 | //wiki: list llList2ListStrided( list src, integer start, integer end, integer stride ) |
378 | List<string> llList2ListStrided(List<string> src, int start, int end, int stride); | 378 | List<string> llList2ListStrided(List<string> src, int start, int end, int stride); |
379 | //wiki: vector llGetRegionCorner( ) | 379 | //wiki: vector llGetRegionCorner( ) |
380 | Axiom.Math.Vector3 llGetRegionCorner(); | 380 | LSL_Types.Vector3 llGetRegionCorner(); |
381 | //wiki: list llListInsertList( list dest, list src, integer start ) | 381 | //wiki: list llListInsertList( list dest, list src, integer start ) |
382 | List<string> llListInsertList(List<string> dest, List<string> src, int start); | 382 | List<string> llListInsertList(List<string> dest, List<string> src, int start); |
383 | //wiki: integer llListFindList( list src, list test ) | 383 | //wiki: integer llListFindList( list src, list test ) |
@@ -389,7 +389,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
389 | //wiki: string llGetDate() | 389 | //wiki: string llGetDate() |
390 | string llGetDate(); | 390 | string llGetDate(); |
391 | //wiki: integer llEdgeOfWorld(vector pos, vector dir) | 391 | //wiki: integer llEdgeOfWorld(vector pos, vector dir) |
392 | int llEdgeOfWorld(Axiom.Math.Vector3 pos, Axiom.Math.Vector3 dir); | 392 | int llEdgeOfWorld(LSL_Types.Vector3 pos, LSL_Types.Vector3 dir); |
393 | //wiki: integer llGetAgentInfo(key id) | 393 | //wiki: integer llGetAgentInfo(key id) |
394 | int llGetAgentInfo(string id); | 394 | int llGetAgentInfo(string id); |
395 | //wiki: llAdjustSoundVolume(double volume) | 395 | //wiki: llAdjustSoundVolume(double volume) |
@@ -403,28 +403,28 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
403 | //wiki: llSetTextureAnim(integer mode, integer face, integer sizex, integer sizey, double start, double length, double rate) | 403 | //wiki: llSetTextureAnim(integer mode, integer face, integer sizex, integer sizey, double start, double length, double rate) |
404 | void llSetTextureAnim(int mode, int face, int sizex, int sizey, double start, double length, double rate); | 404 | void llSetTextureAnim(int mode, int face, int sizex, int sizey, double start, double length, double rate); |
405 | //wiki: llTriggerSoundLimited(string sound, double volume, vector top_north_east, vector bottom_south_west) | 405 | //wiki: llTriggerSoundLimited(string sound, double volume, vector top_north_east, vector bottom_south_west) |
406 | void llTriggerSoundLimited(string sound, double volume, Axiom.Math.Vector3 top_north_east, Axiom.Math.Vector3 bottom_south_west); | 406 | void llTriggerSoundLimited(string sound, double volume, LSL_Types.Vector3 top_north_east, LSL_Types.Vector3 bottom_south_west); |
407 | //wiki: llEjectFromLand(key pest) | 407 | //wiki: llEjectFromLand(key pest) |
408 | void llEjectFromLand(string pest); | 408 | void llEjectFromLand(string pest); |
409 | void llParseString2List(); | 409 | void llParseString2List(); |
410 | //wiki: integer llOverMyLand(key id) | 410 | //wiki: integer llOverMyLand(key id) |
411 | int llOverMyLand(string id); | 411 | int llOverMyLand(string id); |
412 | //wiki: key llGetLandOwnerAt(vector pos) | 412 | //wiki: key llGetLandOwnerAt(vector pos) |
413 | string llGetLandOwnerAt(Axiom.Math.Vector3 pos); | 413 | string llGetLandOwnerAt(LSL_Types.Vector3 pos); |
414 | //wiki: key llGetNotecardLine(string name, integer line) | 414 | //wiki: key llGetNotecardLine(string name, integer line) |
415 | string llGetNotecardLine(string name, int line); | 415 | string llGetNotecardLine(string name, int line); |
416 | //wiki: vector llGetAgentSize(key id) | 416 | //wiki: vector llGetAgentSize(key id) |
417 | Axiom.Math.Vector3 llGetAgentSize(string id); | 417 | LSL_Types.Vector3 llGetAgentSize(string id); |
418 | //wiki: integer llSameGroup(key agent) | 418 | //wiki: integer llSameGroup(key agent) |
419 | int llSameGroup(string agent); | 419 | int llSameGroup(string agent); |
420 | //wiki: llUnSit(key id) | 420 | //wiki: llUnSit(key id) |
421 | void llUnSit(string id); | 421 | void llUnSit(string id); |
422 | //wiki: vector llGroundSlope(vector offset) | 422 | //wiki: vector llGroundSlope(vector offset) |
423 | Axiom.Math.Vector3 llGroundSlope(Axiom.Math.Vector3 offset); | 423 | LSL_Types.Vector3 llGroundSlope(LSL_Types.Vector3 offset); |
424 | //wiki: vector llGroundNormal(vector offset) | 424 | //wiki: vector llGroundNormal(vector offset) |
425 | Axiom.Math.Vector3 llGroundNormal(Axiom.Math.Vector3 offset); | 425 | LSL_Types.Vector3 llGroundNormal(LSL_Types.Vector3 offset); |
426 | //wiki: vector llGroundContour(vector offset) | 426 | //wiki: vector llGroundContour(vector offset) |
427 | Axiom.Math.Vector3 llGroundContour(Axiom.Math.Vector3 offset); | 427 | LSL_Types.Vector3 llGroundContour(LSL_Types.Vector3 offset); |
428 | //wiki: integer llGetAttached() | 428 | //wiki: integer llGetAttached() |
429 | int llGetAttached(); | 429 | int llGetAttached(); |
430 | //wiki: integer llGetFreeMemory() | 430 | //wiki: integer llGetFreeMemory() |
@@ -445,15 +445,15 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
445 | //wiki: llSetVehicledoubleParam(integer param, double value) | 445 | //wiki: llSetVehicledoubleParam(integer param, double value) |
446 | void llSetVehicledoubleParam(int param, double value); | 446 | void llSetVehicledoubleParam(int param, double value); |
447 | //wiki: llSetVehicleVectorParam(integer param, vector vec) | 447 | //wiki: llSetVehicleVectorParam(integer param, vector vec) |
448 | void llSetVehicleVectorParam(int param, Axiom.Math.Vector3 vec); | 448 | void llSetVehicleVectorParam(int param, LSL_Types.Vector3 vec); |
449 | //wiki: llSetVehicleRotationParam(integer param, rotation rot) | 449 | //wiki: llSetVehicleRotationParam(integer param, rotation rot) |
450 | void llSetVehicleRotationParam(int param, Axiom.Math.Quaternion rot); | 450 | void llSetVehicleRotationParam(int param, LSL_Types.Quaternion rot); |
451 | //wiki: llSetVehicleFlags(integer flags) | 451 | //wiki: llSetVehicleFlags(integer flags) |
452 | void llSetVehicleFlags(int flags); | 452 | void llSetVehicleFlags(int flags); |
453 | //wiki: llRemoveVehicleFlags(integer flags) | 453 | //wiki: llRemoveVehicleFlags(integer flags) |
454 | void llRemoveVehicleFlags(int flags); | 454 | void llRemoveVehicleFlags(int flags); |
455 | //wiki: llSitTarget(vector offset, rotation rot) | 455 | //wiki: llSitTarget(vector offset, rotation rot) |
456 | void llSitTarget(Axiom.Math.Vector3 offset, Axiom.Math.Quaternion rot); | 456 | void llSitTarget(LSL_Types.Vector3 offset, LSL_Types.Quaternion rot); |
457 | //wiki key llAvatarOnSitTarget() | 457 | //wiki key llAvatarOnSitTarget() |
458 | string llAvatarOnSitTarget(); | 458 | string llAvatarOnSitTarget(); |
459 | //wiki: llAddToLandPassList(key avatar, double hours) | 459 | //wiki: llAddToLandPassList(key avatar, double hours) |
@@ -463,12 +463,12 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
463 | //wiki: llSetSitText(string text) | 463 | //wiki: llSetSitText(string text) |
464 | void llSetSitText(string text); | 464 | void llSetSitText(string text); |
465 | //wiki: llSetCameraEyeOffset(vector offset) | 465 | //wiki: llSetCameraEyeOffset(vector offset) |
466 | void llSetCameraEyeOffset(Axiom.Math.Vector3 offset); | 466 | void llSetCameraEyeOffset(LSL_Types.Vector3 offset); |
467 | //wiki: llSeteCameraAtOffset(vector offset) | 467 | //wiki: llSeteCameraAtOffset(vector offset) |
468 | void llSetCameraAtOffset(Axiom.Math.Vector3 offset); | 468 | void llSetCameraAtOffset(LSL_Types.Vector3 offset); |
469 | void llDumpList2String(); | 469 | void llDumpList2String(); |
470 | //wiki: integer llScriptDanger(vector pos) | 470 | //wiki: integer llScriptDanger(vector pos) |
471 | void llScriptDanger(Axiom.Math.Vector3 pos); | 471 | void llScriptDanger(LSL_Types.Vector3 pos); |
472 | //wiki: llDialog( key avatar, string message, list buttons, integer chat_channel ) | 472 | //wiki: llDialog( key avatar, string message, list buttons, integer chat_channel ) |
473 | void llDialog(string avatar, string message, List<string> buttons, int chat_channel); | 473 | void llDialog(string avatar, string message, List<string> buttons, int chat_channel); |
474 | //wiki: llVolumeDetect(integer detect) | 474 | //wiki: llVolumeDetect(integer detect) |
@@ -512,9 +512,9 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
512 | //wiki: llSetParcelMusicURL(string url) | 512 | //wiki: llSetParcelMusicURL(string url) |
513 | void llSetParcelMusicURL(string url); | 513 | void llSetParcelMusicURL(string url); |
514 | //wiki: vector llGetRootPosition() | 514 | //wiki: vector llGetRootPosition() |
515 | Axiom.Math.Vector3 llGetRootPosition(); | 515 | LSL_Types.Vector3 llGetRootPosition(); |
516 | //wiki: rotation llGetRootRotation() | 516 | //wiki: rotation llGetRootRotation() |
517 | Axiom.Math.Quaternion llGetRootRotation(); | 517 | LSL_Types.Quaternion llGetRootRotation(); |
518 | //wiki: string llGetObjectDesc() | 518 | //wiki: string llGetObjectDesc() |
519 | string llGetObjectDesc(); | 519 | string llGetObjectDesc(); |
520 | //wiki: llSetObjectDesc(string desc) | 520 | //wiki: llSetObjectDesc(string desc) |
@@ -532,7 +532,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
532 | //wiki: list llGetBoundingBox( key object ) | 532 | //wiki: list llGetBoundingBox( key object ) |
533 | List<string> llGetBoundingBox(string obj); | 533 | List<string> llGetBoundingBox(string obj); |
534 | //wiki: vector llGetGeometricCenter() | 534 | //wiki: vector llGetGeometricCenter() |
535 | Axiom.Math.Vector3 llGetGeometricCenter(); | 535 | LSL_Types.Vector3 llGetGeometricCenter(); |
536 | void llGetPrimitiveParams(); | 536 | void llGetPrimitiveParams(); |
537 | //wiki: string llIntegerToBase64(integer number) | 537 | //wiki: string llIntegerToBase64(integer number) |
538 | string llIntegerToBase64(int number); | 538 | string llIntegerToBase64(int number); |
@@ -543,11 +543,11 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
543 | //wiki: string llGetSimulatorHostname() | 543 | //wiki: string llGetSimulatorHostname() |
544 | string llGetSimulatorHostname(); | 544 | string llGetSimulatorHostname(); |
545 | //llSetLocalRot(rotation rot) | 545 | //llSetLocalRot(rotation rot) |
546 | void llSetLocalRot(Axiom.Math.Quaternion rot); | 546 | void llSetLocalRot(LSL_Types.Quaternion rot); |
547 | //wiki: list llParseStringKeepNulls( string src, list separators, list spacers ) | 547 | //wiki: list llParseStringKeepNulls( string src, list separators, list spacers ) |
548 | List<string> llParseStringKeepNulls(string src, List<string> seperators, List<string> spacers); | 548 | List<string> llParseStringKeepNulls(string src, List<string> seperators, List<string> spacers); |
549 | //wiki: llRezAtRoot(string inventory, vector position, vector velocity, rotation rot, integer param) | 549 | //wiki: llRezAtRoot(string inventory, vector position, vector velocity, rotation rot, integer param) |
550 | void llRezAtRoot(string inventory, Axiom.Math.Vector3 position, Axiom.Math.Vector3 velocity, Axiom.Math.Quaternion rot, int param); | 550 | void llRezAtRoot(string inventory, LSL_Types.Vector3 position, LSL_Types.Vector3 velocity, LSL_Types.Quaternion rot, int param); |
551 | //wiki: integer llGetObjectPermMask(integer mask) | 551 | //wiki: integer llGetObjectPermMask(integer mask) |
552 | int llGetObjectPermMask(int mask); | 552 | int llGetObjectPermMask(int mask); |
553 | //wiki: llSetObjectPermMask(integer mask, integer value) | 553 | //wiki: llSetObjectPermMask(integer mask, integer value) |
@@ -579,9 +579,9 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
579 | //wiki: llSetPayPrice( integer price, list quick_pay_buttons ) | 579 | //wiki: llSetPayPrice( integer price, list quick_pay_buttons ) |
580 | void llSetPayPrice(int price, List<string> quick_pay_buttons); | 580 | void llSetPayPrice(int price, List<string> quick_pay_buttons); |
581 | //wiki: vector llGetCameraPos() | 581 | //wiki: vector llGetCameraPos() |
582 | Axiom.Math.Vector3 llGetCameraPos(); | 582 | LSL_Types.Vector3 llGetCameraPos(); |
583 | //wiki rotation llGetCameraRot() | 583 | //wiki rotation llGetCameraRot() |
584 | Axiom.Math.Quaternion llGetCameraRot(); | 584 | LSL_Types.Quaternion llGetCameraRot(); |
585 | //wiki: (deprecated) | 585 | //wiki: (deprecated) |
586 | void llSetPrimURL(); | 586 | void llSetPrimURL(); |
587 | //wiki: (deprecated) | 587 | //wiki: (deprecated) |
@@ -591,7 +591,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
591 | //wiki: string llUnescapeURL(string url) | 591 | //wiki: string llUnescapeURL(string url) |
592 | string llUnescapeURL(string url); | 592 | string llUnescapeURL(string url); |
593 | //wiki: llMapDestination(string simname, vector pos, vector look_at) | 593 | //wiki: llMapDestination(string simname, vector pos, vector look_at) |
594 | void llMapDestination(string simname, Axiom.Math.Vector3 pos, Axiom.Math.Vector3 look_at); | 594 | void llMapDestination(string simname, LSL_Types.Vector3 pos, LSL_Types.Vector3 look_at); |
595 | //wiki: llAddToLandBanList(key avatar, double hours) | 595 | //wiki: llAddToLandBanList(key avatar, double hours) |
596 | void llAddToLandBanList(string avatar, double hours); | 596 | void llAddToLandBanList(string avatar, double hours); |
597 | //wiki: llRemoveFromLandPassList(key avatar) | 597 | //wiki: llRemoveFromLandPassList(key avatar) |
@@ -607,7 +607,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
607 | //wiki: integer llGetUnixTime() | 607 | //wiki: integer llGetUnixTime() |
608 | int llGetUnixTime(); | 608 | int llGetUnixTime(); |
609 | //wiki: integer llGetParcelFlags(vector pos) | 609 | //wiki: integer llGetParcelFlags(vector pos) |
610 | int llGetParcelFlags(Axiom.Math.Vector3 pos); | 610 | int llGetParcelFlags(LSL_Types.Vector3 pos); |
611 | //wiki: integer llGetRegionFlags() | 611 | //wiki: integer llGetRegionFlags() |
612 | int llGetRegionFlags(); | 612 | int llGetRegionFlags(); |
613 | //wiki: string llXorBase64StringsCorrect(string str1, string str2) | 613 | //wiki: string llXorBase64StringsCorrect(string str1, string str2) |
@@ -618,14 +618,14 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
618 | //wiki: llResetLandPassList() | 618 | //wiki: llResetLandPassList() |
619 | void llResetLandPassList(); | 619 | void llResetLandPassList(); |
620 | //wiki integer llGetParcelPrimCount(vector pos, integer category, integer sim_wide) | 620 | //wiki integer llGetParcelPrimCount(vector pos, integer category, integer sim_wide) |
621 | int llGetParcelPrimCount(Axiom.Math.Vector3 pos, int category, int sim_wide); | 621 | int llGetParcelPrimCount(LSL_Types.Vector3 pos, int category, int sim_wide); |
622 | //wiki: list llGetParcelPrimOwners( vector pos ) | 622 | //wiki: list llGetParcelPrimOwners( vector pos ) |
623 | List<string> llGetParcelPrimOwners(Axiom.Math.Vector3 pos); | 623 | List<string> llGetParcelPrimOwners(LSL_Types.Vector3 pos); |
624 | //wiki: integer llGetObjectPrimCount(key object_id) | 624 | //wiki: integer llGetObjectPrimCount(key object_id) |
625 | int llGetObjectPrimCount(string object_id); | 625 | int llGetObjectPrimCount(string object_id); |
626 | //wiki: integer llGetParcelMaxPrims( vector pos, integer sim_wide ) | 626 | //wiki: integer llGetParcelMaxPrims( vector pos, integer sim_wide ) |
627 | int llGetParcelMaxPrims(Axiom.Math.Vector3 pos, int sim_wide); | 627 | int llGetParcelMaxPrims(LSL_Types.Vector3 pos, int sim_wide); |
628 | //wiki list llGetParcelDetails(vector pos, list params) | 628 | //wiki list llGetParcelDetails(vector pos, list params) |
629 | List<string> llGetParcelDetails(Axiom.Math.Vector3 pos, List<string> param); | 629 | List<string> llGetParcelDetails(LSL_Types.Vector3 pos, List<string> param); |
630 | } | 630 | } |
631 | } | 631 | } |
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs b/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs new file mode 100644 index 0000000..b151d5a --- /dev/null +++ b/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs | |||
@@ -0,0 +1,53 @@ | |||
1 | using System; | ||
2 | |||
3 | namespace OpenSim.Region.ScriptEngine.Common | ||
4 | { | ||
5 | [Serializable] | ||
6 | public class LSL_Types | ||
7 | { | ||
8 | [Serializable] | ||
9 | public struct Vector3 | ||
10 | { | ||
11 | public double X; | ||
12 | public double Y; | ||
13 | public double Z; | ||
14 | |||
15 | public Vector3(Vector3 vector) | ||
16 | { | ||
17 | X = (float)vector.X; | ||
18 | Y = (float)vector.Y; | ||
19 | Z = (float)vector.Z; | ||
20 | } | ||
21 | public Vector3(double x, double y, double z) | ||
22 | { | ||
23 | X = x; | ||
24 | Y = y; | ||
25 | Z = z; | ||
26 | } | ||
27 | } | ||
28 | [Serializable] | ||
29 | public struct Quaternion | ||
30 | { | ||
31 | public double X; | ||
32 | public double Y; | ||
33 | public double Z; | ||
34 | public double R; | ||
35 | |||
36 | public Quaternion(Quaternion Quat) | ||
37 | { | ||
38 | X = (float)Quat.X; | ||
39 | Y = (float)Quat.Y; | ||
40 | Z = (float)Quat.Z; | ||
41 | R = (float)Quat.R; | ||
42 | } | ||
43 | public Quaternion(double x, double y, double z, double r) | ||
44 | { | ||
45 | X = x; | ||
46 | Y = y; | ||
47 | Z = z; | ||
48 | R = r; | ||
49 | } | ||
50 | |||
51 | } | ||
52 | } | ||
53 | } | ||