diff options
author | Tedd Hansen | 2008-02-24 16:41:56 +0000 |
---|---|---|
committer | Tedd Hansen | 2008-02-24 16:41:56 +0000 |
commit | 8af64c979fcc993615243d66f03903173ab933b0 (patch) | |
tree | 2eb740170947f48af679b673ac50832f11411f30 /OpenSim/Region/ScriptEngine/Common/LSL_BaseClass.cs | |
parent | Forgot to change what class compiled scripts must inherit from to get their c... (diff) | |
download | opensim-SC-8af64c979fcc993615243d66f03903173ab933b0.zip opensim-SC-8af64c979fcc993615243d66f03903173ab933b0.tar.gz opensim-SC-8af64c979fcc993615243d66f03903173ab933b0.tar.bz2 opensim-SC-8af64c979fcc993615243d66f03903173ab933b0.tar.xz |
By now you all have learned that when I'm committing scripting usually doesn't work, so no big surprise. :)
Modified baseclass for compiled script to incorp new OSSL commands class and renamed it to follow standards and all that. Scripts may work again. :)
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common/LSL_BaseClass.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Common/LSL_BaseClass.cs | 2212 |
1 files changed, 0 insertions, 2212 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BaseClass.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BaseClass.cs deleted file mode 100644 index 58f58aa..0000000 --- a/OpenSim/Region/ScriptEngine/Common/LSL_BaseClass.cs +++ /dev/null | |||
@@ -1,2212 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (c) Contributors, http://opensimulator.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 | |||
29 | using System; | ||
30 | using System.Collections.Generic; | ||
31 | using System.Runtime.Remoting.Lifetime; | ||
32 | using System.Threading; | ||
33 | using OpenSim.Region.ScriptEngine.Common; | ||
34 | using OpenSim.Region.ScriptEngine.Common.ScriptEngineBase; | ||
35 | using integer = System.Int32; | ||
36 | using key = System.String; | ||
37 | using vector = OpenSim.Region.ScriptEngine.Common.LSL_Types.Vector3; | ||
38 | using rotation = OpenSim.Region.ScriptEngine.Common.LSL_Types.Quaternion; | ||
39 | |||
40 | namespace OpenSim.Region.ScriptEngine.Common | ||
41 | { | ||
42 | public class LSL_BaseClass : MarshalByRefObject, LSL_BuiltIn_Commands_Interface, IScript | ||
43 | { | ||
44 | // | ||
45 | // Included as base for any LSL-script that is compiled. | ||
46 | // Any function added here will be accessible to the LSL script. But it must also be added to "LSL_BuiltIn_Commands_Interface" in "OpenSim.Region.ScriptEngine.Common" class. | ||
47 | // | ||
48 | // Security note: This script will be running inside an restricted AppDomain. Currently AppDomain is not very restricted. | ||
49 | // | ||
50 | |||
51 | //private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); | ||
52 | |||
53 | // Object never expires | ||
54 | public override Object InitializeLifetimeService() | ||
55 | { | ||
56 | //Console.WriteLine("LSL_BaseClass: InitializeLifetimeService()"); | ||
57 | // return null; | ||
58 | ILease lease = (ILease)base.InitializeLifetimeService(); | ||
59 | |||
60 | if (lease.CurrentState == LeaseState.Initial) | ||
61 | { | ||
62 | lease.InitialLeaseTime = TimeSpan.Zero; // TimeSpan.FromMinutes(1); | ||
63 | //lease.SponsorshipTimeout = TimeSpan.FromMinutes(2); | ||
64 | //lease.RenewOnCallTime = TimeSpan.FromSeconds(2); | ||
65 | } | ||
66 | return lease; | ||
67 | } | ||
68 | |||
69 | public EventQueueManager.Queue_llDetectParams_Struct _llDetectParams; | ||
70 | EventQueueManager.Queue_llDetectParams_Struct IScript.llDetectParams | ||
71 | { | ||
72 | get { return _llDetectParams; } | ||
73 | set { _llDetectParams = value; } | ||
74 | } | ||
75 | |||
76 | private Executor m_Exec; | ||
77 | |||
78 | ExecutorBase IScript.Exec | ||
79 | { | ||
80 | get | ||
81 | { | ||
82 | if (m_Exec == null) | ||
83 | m_Exec = new Executor(this); | ||
84 | return m_Exec; | ||
85 | } | ||
86 | } | ||
87 | |||
88 | |||
89 | public BuilIn_Commands m_LSL_Functions; | ||
90 | private string _Source = String.Empty; | ||
91 | public string Source | ||
92 | { | ||
93 | get | ||
94 | { | ||
95 | return _Source; | ||
96 | } | ||
97 | set { _Source = value; } | ||
98 | } | ||
99 | |||
100 | |||
101 | public LSL_BaseClass() | ||
102 | { | ||
103 | } | ||
104 | |||
105 | public string State | ||
106 | { | ||
107 | get { return m_LSL_Functions.State; } | ||
108 | set { m_LSL_Functions.State = value; } | ||
109 | } | ||
110 | |||
111 | |||
112 | |||
113 | public void Start(BuilIn_Commands LSL_Functions) | ||
114 | { | ||
115 | m_LSL_Functions = LSL_Functions; | ||
116 | |||
117 | //m_log.Info(ScriptEngineName, "LSL_BaseClass.Start() called."); | ||
118 | |||
119 | // Get this AppDomain's settings and display some of them. | ||
120 | AppDomainSetup ads = AppDomain.CurrentDomain.SetupInformation; | ||
121 | Console.WriteLine("AppName={0}, AppBase={1}, ConfigFile={2}", | ||
122 | ads.ApplicationName, | ||
123 | ads.ApplicationBase, | ||
124 | ads.ConfigurationFile | ||
125 | ); | ||
126 | |||
127 | // Display the name of the calling AppDomain and the name | ||
128 | // of the second domain. | ||
129 | // NOTE: The application's thread has transitioned between | ||
130 | // AppDomains. | ||
131 | Console.WriteLine("Calling to '{0}'.", | ||
132 | Thread.GetDomain().FriendlyName | ||
133 | ); | ||
134 | |||
135 | return; | ||
136 | } | ||
137 | |||
138 | |||
139 | |||
140 | |||
141 | // | ||
142 | // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs | ||
143 | // | ||
144 | // They are only forwarders to LSL_BuiltIn_Commands.cs | ||
145 | // | ||
146 | public double llSin(double f) | ||
147 | { | ||
148 | return m_LSL_Functions.llSin(f); | ||
149 | } | ||
150 | |||
151 | public double llCos(double f) | ||
152 | { | ||
153 | return m_LSL_Functions.llCos(f); | ||
154 | } | ||
155 | |||
156 | public double llTan(double f) | ||
157 | { | ||
158 | return m_LSL_Functions.llTan(f); | ||
159 | } | ||
160 | |||
161 | public double llAtan2(double x, double y) | ||
162 | { | ||
163 | return m_LSL_Functions.llAtan2(x, y); | ||
164 | } | ||
165 | |||
166 | public double llSqrt(double f) | ||
167 | { | ||
168 | return m_LSL_Functions.llSqrt(f); | ||
169 | } | ||
170 | |||
171 | public double llPow(double fbase, double fexponent) | ||
172 | { | ||
173 | return m_LSL_Functions.llPow(fbase, fexponent); | ||
174 | } | ||
175 | |||
176 | public int llAbs(int i) | ||
177 | { | ||
178 | return m_LSL_Functions.llAbs(i); | ||
179 | } | ||
180 | |||
181 | public double llFabs(double f) | ||
182 | { | ||
183 | return m_LSL_Functions.llFabs(f); | ||
184 | } | ||
185 | |||
186 | public double llFrand(double mag) | ||
187 | { | ||
188 | return m_LSL_Functions.llFrand(mag); | ||
189 | } | ||
190 | |||
191 | public int llFloor(double f) | ||
192 | { | ||
193 | return m_LSL_Functions.llFloor(f); | ||
194 | } | ||
195 | |||
196 | public int llCeil(double f) | ||
197 | { | ||
198 | return m_LSL_Functions.llCeil(f); | ||
199 | } | ||
200 | |||
201 | public int llRound(double f) | ||
202 | { | ||
203 | return m_LSL_Functions.llRound(f); | ||
204 | } | ||
205 | |||
206 | public double llVecMag(vector v) | ||
207 | { | ||
208 | return m_LSL_Functions.llVecMag(v); | ||
209 | } | ||
210 | |||
211 | public vector llVecNorm(vector v) | ||
212 | { | ||
213 | return m_LSL_Functions.llVecNorm(v); | ||
214 | } | ||
215 | |||
216 | public double llVecDist(vector a, vector b) | ||
217 | { | ||
218 | return m_LSL_Functions.llVecDist(a, b); | ||
219 | } | ||
220 | |||
221 | public vector llRot2Euler(rotation r) | ||
222 | { | ||
223 | return m_LSL_Functions.llRot2Euler(r); | ||
224 | } | ||
225 | |||
226 | public rotation llEuler2Rot(vector v) | ||
227 | { | ||
228 | return m_LSL_Functions.llEuler2Rot(v); | ||
229 | } | ||
230 | |||
231 | public rotation llAxes2Rot(vector fwd, vector left, vector up) | ||
232 | { | ||
233 | return m_LSL_Functions.llAxes2Rot(fwd, left, up); | ||
234 | } | ||
235 | |||
236 | public vector llRot2Fwd(rotation r) | ||
237 | { | ||
238 | return m_LSL_Functions.llRot2Fwd(r); | ||
239 | } | ||
240 | |||
241 | public vector llRot2Left(rotation r) | ||
242 | { | ||
243 | return m_LSL_Functions.llRot2Left(r); | ||
244 | } | ||
245 | |||
246 | public vector llRot2Up(rotation r) | ||
247 | { | ||
248 | return m_LSL_Functions.llRot2Up(r); | ||
249 | } | ||
250 | |||
251 | public rotation llRotBetween(vector start, vector end) | ||
252 | { | ||
253 | return m_LSL_Functions.llRotBetween(start, end); | ||
254 | } | ||
255 | |||
256 | public void llWhisper(int channelID, string text) | ||
257 | { | ||
258 | m_LSL_Functions.llWhisper(channelID, text); | ||
259 | } | ||
260 | |||
261 | public void llSay(int channelID, string text) | ||
262 | { | ||
263 | m_LSL_Functions.llSay(channelID, text); | ||
264 | } | ||
265 | |||
266 | // | ||
267 | // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs | ||
268 | // | ||
269 | public void llShout(int channelID, string text) | ||
270 | { | ||
271 | m_LSL_Functions.llShout(channelID, text); | ||
272 | } | ||
273 | |||
274 | public int llListen(int channelID, string name, string ID, string msg) | ||
275 | { | ||
276 | return m_LSL_Functions.llListen(channelID, name, ID, msg); | ||
277 | } | ||
278 | |||
279 | public void llListenControl(int number, int active) | ||
280 | { | ||
281 | m_LSL_Functions.llListenControl(number, active); | ||
282 | } | ||
283 | |||
284 | public void llListenRemove(int number) | ||
285 | { | ||
286 | m_LSL_Functions.llListenRemove(number); | ||
287 | } | ||
288 | |||
289 | public void llSensor(string name, string id, int type, double range, double arc) | ||
290 | { | ||
291 | m_LSL_Functions.llSensor(name, id, type, range, arc); | ||
292 | } | ||
293 | |||
294 | public void llSensorRepeat(string name, string id, int type, double range, double arc, double rate) | ||
295 | { | ||
296 | m_LSL_Functions.llSensorRepeat(name, id, type, range, arc, rate); | ||
297 | } | ||
298 | |||
299 | public void llSensorRemove() | ||
300 | { | ||
301 | m_LSL_Functions.llSensorRemove(); | ||
302 | } | ||
303 | |||
304 | public string llDetectedName(int number) | ||
305 | { | ||
306 | return m_LSL_Functions.llDetectedName(number); | ||
307 | } | ||
308 | |||
309 | public string llDetectedKey(int number) | ||
310 | { | ||
311 | return m_LSL_Functions.llDetectedKey(number); | ||
312 | } | ||
313 | |||
314 | public string llDetectedOwner(int number) | ||
315 | { | ||
316 | return m_LSL_Functions.llDetectedOwner(number); | ||
317 | } | ||
318 | |||
319 | public int llDetectedType(int number) | ||
320 | { | ||
321 | return m_LSL_Functions.llDetectedType(number); | ||
322 | } | ||
323 | |||
324 | public vector llDetectedPos(int number) | ||
325 | { | ||
326 | return m_LSL_Functions.llDetectedPos(number); | ||
327 | } | ||
328 | |||
329 | public vector llDetectedVel(int number) | ||
330 | { | ||
331 | return m_LSL_Functions.llDetectedVel(number); | ||
332 | } | ||
333 | |||
334 | public vector llDetectedGrab(int number) | ||
335 | { | ||
336 | return m_LSL_Functions.llDetectedGrab(number); | ||
337 | } | ||
338 | |||
339 | public rotation llDetectedRot(int number) | ||
340 | { | ||
341 | return m_LSL_Functions.llDetectedRot(number); | ||
342 | } | ||
343 | |||
344 | public int llDetectedGroup(int number) | ||
345 | { | ||
346 | return m_LSL_Functions.llDetectedGroup(number); | ||
347 | } | ||
348 | |||
349 | public int llDetectedLinkNumber(int number) | ||
350 | { | ||
351 | return m_LSL_Functions.llDetectedLinkNumber(number); | ||
352 | } | ||
353 | |||
354 | // | ||
355 | // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs | ||
356 | // | ||
357 | public void llDie() | ||
358 | { | ||
359 | m_LSL_Functions.llDie(); | ||
360 | } | ||
361 | |||
362 | public double llGround(vector offset) | ||
363 | { | ||
364 | return m_LSL_Functions.llGround(offset); | ||
365 | } | ||
366 | |||
367 | public double llCloud(vector offset) | ||
368 | { | ||
369 | return m_LSL_Functions.llCloud(offset); | ||
370 | } | ||
371 | |||
372 | public vector llWind(vector offset) | ||
373 | { | ||
374 | return m_LSL_Functions.llWind(offset); | ||
375 | } | ||
376 | |||
377 | public void llSetStatus(int status, int value) | ||
378 | { | ||
379 | m_LSL_Functions.llSetStatus(status, value); | ||
380 | } | ||
381 | |||
382 | public int llGetStatus(int status) | ||
383 | { | ||
384 | return m_LSL_Functions.llGetStatus(status); | ||
385 | } | ||
386 | |||
387 | public void llSetScale(vector scale) | ||
388 | { | ||
389 | m_LSL_Functions.llSetScale(scale); | ||
390 | } | ||
391 | |||
392 | public vector llGetScale() | ||
393 | { | ||
394 | return m_LSL_Functions.llGetScale(); | ||
395 | } | ||
396 | |||
397 | public void llSetColor(vector color, int face) | ||
398 | { | ||
399 | m_LSL_Functions.llSetColor(color, face); | ||
400 | } | ||
401 | |||
402 | public double llGetAlpha(int face) | ||
403 | { | ||
404 | return m_LSL_Functions.llGetAlpha(face); | ||
405 | } | ||
406 | |||
407 | public void llSetAlpha(double alpha, int face) | ||
408 | { | ||
409 | m_LSL_Functions.llSetAlpha(alpha, face); | ||
410 | } | ||
411 | |||
412 | public vector llGetColor(int face) | ||
413 | { | ||
414 | return m_LSL_Functions.llGetColor(face); | ||
415 | } | ||
416 | |||
417 | public void llSetTexture(string texture, int face) | ||
418 | { | ||
419 | m_LSL_Functions.llSetTexture(texture, face); | ||
420 | } | ||
421 | |||
422 | public void llScaleTexture(double u, double v, int face) | ||
423 | { | ||
424 | m_LSL_Functions.llScaleTexture(u, v, face); | ||
425 | } | ||
426 | |||
427 | public void llOffsetTexture(double u, double v, int face) | ||
428 | { | ||
429 | m_LSL_Functions.llOffsetTexture(u, v, face); | ||
430 | } | ||
431 | |||
432 | public void llRotateTexture(double rotation, int face) | ||
433 | { | ||
434 | m_LSL_Functions.llRotateTexture(rotation, face); | ||
435 | } | ||
436 | |||
437 | public string llGetTexture(int face) | ||
438 | { | ||
439 | return m_LSL_Functions.llGetTexture(face); | ||
440 | } | ||
441 | |||
442 | // | ||
443 | // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs | ||
444 | // | ||
445 | public void llSetPos(vector pos) | ||
446 | { | ||
447 | m_LSL_Functions.llSetPos(pos); | ||
448 | } | ||
449 | |||
450 | public vector llGetPos() | ||
451 | { | ||
452 | return m_LSL_Functions.llGetPos(); | ||
453 | } | ||
454 | |||
455 | public vector llGetLocalPos() | ||
456 | { | ||
457 | return m_LSL_Functions.llGetLocalPos(); | ||
458 | } | ||
459 | |||
460 | public void llSetRot(rotation rot) | ||
461 | { | ||
462 | m_LSL_Functions.llSetRot(rot); | ||
463 | } | ||
464 | |||
465 | public rotation llGetRot() | ||
466 | { | ||
467 | return m_LSL_Functions.llGetRot(); | ||
468 | } | ||
469 | |||
470 | public rotation llGetLocalRot() | ||
471 | { | ||
472 | return m_LSL_Functions.llGetLocalRot(); | ||
473 | } | ||
474 | |||
475 | public void llSetForce(vector force, int local) | ||
476 | { | ||
477 | m_LSL_Functions.llSetForce(force, local); | ||
478 | } | ||
479 | |||
480 | public vector llGetForce() | ||
481 | { | ||
482 | return m_LSL_Functions.llGetForce(); | ||
483 | } | ||
484 | |||
485 | public int llTarget(vector position, double range) | ||
486 | { | ||
487 | return m_LSL_Functions.llTarget(position, range); | ||
488 | } | ||
489 | |||
490 | public void llTargetRemove(int number) | ||
491 | { | ||
492 | m_LSL_Functions.llTargetRemove(number); | ||
493 | } | ||
494 | |||
495 | public int llRotTarget(rotation rot, double error) | ||
496 | { | ||
497 | return m_LSL_Functions.llRotTarget(rot, error); | ||
498 | } | ||
499 | |||
500 | public void llRotTargetRemove(int number) | ||
501 | { | ||
502 | m_LSL_Functions.llRotTargetRemove(number); | ||
503 | } | ||
504 | |||
505 | public void llMoveToTarget(vector target, double tau) | ||
506 | { | ||
507 | m_LSL_Functions.llMoveToTarget(target, tau); | ||
508 | } | ||
509 | |||
510 | public void llStopMoveToTarget() | ||
511 | { | ||
512 | m_LSL_Functions.llStopMoveToTarget(); | ||
513 | } | ||
514 | |||
515 | public void llApplyImpulse(vector force, int local) | ||
516 | { | ||
517 | m_LSL_Functions.llApplyImpulse(force, local); | ||
518 | } | ||
519 | |||
520 | // | ||
521 | // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs | ||
522 | // | ||
523 | public void llApplyRotationalImpulse(vector force, int local) | ||
524 | { | ||
525 | m_LSL_Functions.llApplyRotationalImpulse(force, local); | ||
526 | } | ||
527 | |||
528 | public void llSetTorque(vector torque, int local) | ||
529 | { | ||
530 | m_LSL_Functions.llSetTorque(torque, local); | ||
531 | } | ||
532 | |||
533 | public vector llGetTorque() | ||
534 | { | ||
535 | return m_LSL_Functions.llGetTorque(); | ||
536 | } | ||
537 | |||
538 | public void llSetForceAndTorque(vector force, vector torque, int local) | ||
539 | { | ||
540 | m_LSL_Functions.llSetForceAndTorque(force, torque, local); | ||
541 | } | ||
542 | |||
543 | public vector llGetVel() | ||
544 | { | ||
545 | return m_LSL_Functions.llGetVel(); | ||
546 | } | ||
547 | |||
548 | public vector llGetAccel() | ||
549 | { | ||
550 | return m_LSL_Functions.llGetAccel(); | ||
551 | } | ||
552 | |||
553 | public vector llGetOmega() | ||
554 | { | ||
555 | return m_LSL_Functions.llGetOmega(); | ||
556 | } | ||
557 | |||
558 | public double llGetTimeOfDay() | ||
559 | { | ||
560 | return m_LSL_Functions.llGetTimeOfDay(); | ||
561 | } | ||
562 | |||
563 | public double llGetWallclock() | ||
564 | { | ||
565 | return m_LSL_Functions.llGetWallclock(); | ||
566 | } | ||
567 | |||
568 | public double llGetTime() | ||
569 | { | ||
570 | return m_LSL_Functions.llGetTime(); | ||
571 | } | ||
572 | |||
573 | public void llResetTime() | ||
574 | { | ||
575 | m_LSL_Functions.llResetTime(); | ||
576 | } | ||
577 | |||
578 | public double llGetAndResetTime() | ||
579 | { | ||
580 | return m_LSL_Functions.llGetAndResetTime(); | ||
581 | } | ||
582 | |||
583 | public void llSound() | ||
584 | { | ||
585 | m_LSL_Functions.llSound(); | ||
586 | } | ||
587 | |||
588 | public void llPlaySound(string sound, double volume) | ||
589 | { | ||
590 | m_LSL_Functions.llPlaySound(sound, volume); | ||
591 | } | ||
592 | |||
593 | public void llLoopSound(string sound, double volume) | ||
594 | { | ||
595 | m_LSL_Functions.llLoopSound(sound, volume); | ||
596 | } | ||
597 | |||
598 | public void llLoopSoundMaster(string sound, double volume) | ||
599 | { | ||
600 | m_LSL_Functions.llLoopSoundMaster(sound, volume); | ||
601 | } | ||
602 | |||
603 | public void llLoopSoundSlave(string sound, double volume) | ||
604 | { | ||
605 | m_LSL_Functions.llLoopSoundSlave(sound, volume); | ||
606 | } | ||
607 | |||
608 | public void llPlaySoundSlave(string sound, double volume) | ||
609 | { | ||
610 | m_LSL_Functions.llPlaySoundSlave(sound, volume); | ||
611 | } | ||
612 | |||
613 | // | ||
614 | // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs | ||
615 | // | ||
616 | public void llTriggerSound(string sound, double volume) | ||
617 | { | ||
618 | m_LSL_Functions.llTriggerSound(sound, volume); | ||
619 | } | ||
620 | |||
621 | public void llStopSound() | ||
622 | { | ||
623 | m_LSL_Functions.llStopSound(); | ||
624 | } | ||
625 | |||
626 | public void llPreloadSound(string sound) | ||
627 | { | ||
628 | m_LSL_Functions.llPreloadSound(sound); | ||
629 | } | ||
630 | |||
631 | public string llGetSubString(string src, int start, int end) | ||
632 | { | ||
633 | return m_LSL_Functions.llGetSubString(src, start, end); | ||
634 | } | ||
635 | |||
636 | public string llDeleteSubString(string src, int start, int end) | ||
637 | { | ||
638 | return m_LSL_Functions.llDeleteSubString(src, start, end); | ||
639 | } | ||
640 | |||
641 | public string llInsertString(string dst, int position, string src) | ||
642 | { | ||
643 | return m_LSL_Functions.llInsertString(dst, position, src); | ||
644 | } | ||
645 | |||
646 | public string llToUpper(string source) | ||
647 | { | ||
648 | return m_LSL_Functions.llToUpper(source); | ||
649 | } | ||
650 | |||
651 | public string llToLower(string source) | ||
652 | { | ||
653 | return m_LSL_Functions.llToLower(source); | ||
654 | } | ||
655 | |||
656 | public int llGiveMoney(string destination, int amount) | ||
657 | { | ||
658 | return m_LSL_Functions.llGiveMoney(destination, amount); | ||
659 | } | ||
660 | |||
661 | public void llMakeExplosion() | ||
662 | { | ||
663 | m_LSL_Functions.llMakeExplosion(); | ||
664 | } | ||
665 | |||
666 | public void llMakeFountain() | ||
667 | { | ||
668 | m_LSL_Functions.llMakeFountain(); | ||
669 | } | ||
670 | |||
671 | public void llMakeSmoke() | ||
672 | { | ||
673 | m_LSL_Functions.llMakeSmoke(); | ||
674 | } | ||
675 | |||
676 | public void llMakeFire() | ||
677 | { | ||
678 | m_LSL_Functions.llMakeFire(); | ||
679 | } | ||
680 | |||
681 | public void llRezObject(string inventory, vector pos, rotation rot, int param) | ||
682 | { | ||
683 | m_LSL_Functions.llRezObject(inventory, pos, rot, param); | ||
684 | } | ||
685 | |||
686 | public void llLookAt(vector target, double strength, double damping) | ||
687 | { | ||
688 | m_LSL_Functions.llLookAt(target, strength, damping); | ||
689 | } | ||
690 | |||
691 | public void llStopLookAt() | ||
692 | { | ||
693 | m_LSL_Functions.llStopLookAt(); | ||
694 | } | ||
695 | |||
696 | public void llSetTimerEvent(double sec) | ||
697 | { | ||
698 | m_LSL_Functions.llSetTimerEvent(sec); | ||
699 | } | ||
700 | |||
701 | public void llSleep(double sec) | ||
702 | { | ||
703 | m_LSL_Functions.llSleep(sec); | ||
704 | } | ||
705 | |||
706 | // | ||
707 | // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs | ||
708 | // | ||
709 | public double llGetMass() | ||
710 | { | ||
711 | return m_LSL_Functions.llGetMass(); | ||
712 | } | ||
713 | |||
714 | public void llCollisionFilter(string name, string id, int accept) | ||
715 | { | ||
716 | m_LSL_Functions.llCollisionFilter(name, id, accept); | ||
717 | } | ||
718 | |||
719 | public void llTakeControls(int controls, int accept, int pass_on) | ||
720 | { | ||
721 | m_LSL_Functions.llTakeControls(controls, accept, pass_on); | ||
722 | } | ||
723 | |||
724 | public void llReleaseControls() | ||
725 | { | ||
726 | m_LSL_Functions.llReleaseControls(); | ||
727 | } | ||
728 | |||
729 | public void llAttachToAvatar(int attachment) | ||
730 | { | ||
731 | m_LSL_Functions.llAttachToAvatar(attachment); | ||
732 | } | ||
733 | |||
734 | public void llDetachFromAvatar() | ||
735 | { | ||
736 | m_LSL_Functions.llDetachFromAvatar(); | ||
737 | } | ||
738 | |||
739 | public void llTakeCamera() | ||
740 | { | ||
741 | m_LSL_Functions.llTakeCamera(); | ||
742 | } | ||
743 | |||
744 | public void llReleaseCamera() | ||
745 | { | ||
746 | m_LSL_Functions.llReleaseCamera(); | ||
747 | } | ||
748 | |||
749 | public string llGetOwner() | ||
750 | { | ||
751 | return m_LSL_Functions.llGetOwner(); | ||
752 | } | ||
753 | |||
754 | public void llInstantMessage(string user, string message) | ||
755 | { | ||
756 | m_LSL_Functions.llInstantMessage(user, message); | ||
757 | } | ||
758 | |||
759 | public void llEmail(string address, string subject, string message) | ||
760 | { | ||
761 | m_LSL_Functions.llEmail(address, subject, message); | ||
762 | } | ||
763 | |||
764 | public void llGetNextEmail(string address, string subject) | ||
765 | { | ||
766 | m_LSL_Functions.llGetNextEmail(address, subject); | ||
767 | } | ||
768 | |||
769 | public string llGetKey() | ||
770 | { | ||
771 | return m_LSL_Functions.llGetKey(); | ||
772 | } | ||
773 | |||
774 | public void llSetBuoyancy(double buoyancy) | ||
775 | { | ||
776 | m_LSL_Functions.llSetBuoyancy(buoyancy); | ||
777 | } | ||
778 | |||
779 | public void llSetHoverHeight(double height, int water, double tau) | ||
780 | { | ||
781 | m_LSL_Functions.llSetHoverHeight(height, water, tau); | ||
782 | } | ||
783 | |||
784 | public void llStopHover() | ||
785 | { | ||
786 | m_LSL_Functions.llStopHover(); | ||
787 | } | ||
788 | |||
789 | public void llMinEventDelay(double delay) | ||
790 | { | ||
791 | m_LSL_Functions.llMinEventDelay(delay); | ||
792 | } | ||
793 | |||
794 | public void llSoundPreload() | ||
795 | { | ||
796 | m_LSL_Functions.llSoundPreload(); | ||
797 | } | ||
798 | |||
799 | public void llRotLookAt(rotation target, double strength, double damping) | ||
800 | { | ||
801 | m_LSL_Functions.llRotLookAt(target, strength, damping); | ||
802 | } | ||
803 | |||
804 | // | ||
805 | // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs | ||
806 | // | ||
807 | public int llStringLength(string str) | ||
808 | { | ||
809 | return m_LSL_Functions.llStringLength(str); | ||
810 | } | ||
811 | |||
812 | public void llStartAnimation(string anim) | ||
813 | { | ||
814 | m_LSL_Functions.llStartAnimation(anim); | ||
815 | } | ||
816 | |||
817 | public void llStopAnimation(string anim) | ||
818 | { | ||
819 | m_LSL_Functions.llStopAnimation(anim); | ||
820 | } | ||
821 | |||
822 | public void llPointAt() | ||
823 | { | ||
824 | m_LSL_Functions.llPointAt(); | ||
825 | } | ||
826 | |||
827 | public void llStopPointAt() | ||
828 | { | ||
829 | m_LSL_Functions.llStopPointAt(); | ||
830 | } | ||
831 | |||
832 | public void llTargetOmega(vector axis, double spinrate, double gain) | ||
833 | { | ||
834 | m_LSL_Functions.llTargetOmega(axis, spinrate, gain); | ||
835 | } | ||
836 | |||
837 | public int llGetStartParameter() | ||
838 | { | ||
839 | return m_LSL_Functions.llGetStartParameter(); | ||
840 | } | ||
841 | |||
842 | public void llGodLikeRezObject(string inventory, vector pos) | ||
843 | { | ||
844 | m_LSL_Functions.llGodLikeRezObject(inventory, pos); | ||
845 | } | ||
846 | |||
847 | public void llRequestPermissions(string agent, int perm) | ||
848 | { | ||
849 | m_LSL_Functions.llRequestPermissions(agent, perm); | ||
850 | } | ||
851 | |||
852 | public string llGetPermissionsKey() | ||
853 | { | ||
854 | return m_LSL_Functions.llGetPermissionsKey(); | ||
855 | } | ||
856 | |||
857 | public int llGetPermissions() | ||
858 | { | ||
859 | return m_LSL_Functions.llGetPermissions(); | ||
860 | } | ||
861 | |||
862 | public int llGetLinkNumber() | ||
863 | { | ||
864 | return m_LSL_Functions.llGetLinkNumber(); | ||
865 | } | ||
866 | |||
867 | public void llSetLinkColor(int linknumber, vector color, int face) | ||
868 | { | ||
869 | m_LSL_Functions.llSetLinkColor(linknumber, color, face); | ||
870 | } | ||
871 | |||
872 | public void llCreateLink(string target, int parent) | ||
873 | { | ||
874 | m_LSL_Functions.llCreateLink(target, parent); | ||
875 | } | ||
876 | |||
877 | public void llBreakLink(int linknum) | ||
878 | { | ||
879 | m_LSL_Functions.llBreakLink(linknum); | ||
880 | } | ||
881 | |||
882 | public void llBreakAllLinks() | ||
883 | { | ||
884 | m_LSL_Functions.llBreakAllLinks(); | ||
885 | } | ||
886 | |||
887 | public string llGetLinkKey(int linknum) | ||
888 | { | ||
889 | return m_LSL_Functions.llGetLinkKey(linknum); | ||
890 | } | ||
891 | |||
892 | public string llGetLinkName(int linknum) | ||
893 | { | ||
894 | return m_LSL_Functions.llGetLinkName(linknum); | ||
895 | } | ||
896 | |||
897 | public int llGetInventoryNumber(int type) | ||
898 | { | ||
899 | return m_LSL_Functions.llGetInventoryNumber(type); | ||
900 | } | ||
901 | |||
902 | public string llGetInventoryName(int type, int number) | ||
903 | { | ||
904 | return m_LSL_Functions.llGetInventoryName(type, number); | ||
905 | } | ||
906 | |||
907 | // | ||
908 | // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs | ||
909 | // | ||
910 | public void llSetScriptState(string name, int run) | ||
911 | { | ||
912 | m_LSL_Functions.llSetScriptState(name, run); | ||
913 | } | ||
914 | |||
915 | public double llGetEnergy() | ||
916 | { | ||
917 | return m_LSL_Functions.llGetEnergy(); | ||
918 | } | ||
919 | |||
920 | public void llGiveInventory(string destination, string inventory) | ||
921 | { | ||
922 | m_LSL_Functions.llGiveInventory(destination, inventory); | ||
923 | } | ||
924 | |||
925 | public void llRemoveInventory(string item) | ||
926 | { | ||
927 | m_LSL_Functions.llRemoveInventory(item); | ||
928 | } | ||
929 | |||
930 | public void llSetText(string text, vector color, double alpha) | ||
931 | { | ||
932 | m_LSL_Functions.llSetText(text, color, alpha); | ||
933 | } | ||
934 | |||
935 | public double llWater(vector offset) | ||
936 | { | ||
937 | return m_LSL_Functions.llWater(offset); | ||
938 | } | ||
939 | |||
940 | public void llPassTouches(int pass) | ||
941 | { | ||
942 | m_LSL_Functions.llPassTouches(pass); | ||
943 | } | ||
944 | |||
945 | public string llRequestAgentData(string id, int data) | ||
946 | { | ||
947 | return m_LSL_Functions.llRequestAgentData(id, data); | ||
948 | } | ||
949 | |||
950 | public string llRequestInventoryData(string name) | ||
951 | { | ||
952 | return m_LSL_Functions.llRequestInventoryData(name); | ||
953 | } | ||
954 | |||
955 | public void llSetDamage(double damage) | ||
956 | { | ||
957 | m_LSL_Functions.llSetDamage(damage); | ||
958 | } | ||
959 | |||
960 | public void llTeleportAgentHome(string agent) | ||
961 | { | ||
962 | m_LSL_Functions.llTeleportAgentHome(agent); | ||
963 | } | ||
964 | |||
965 | public void llModifyLand(int action, int brush) | ||
966 | { | ||
967 | m_LSL_Functions.llModifyLand(action, brush); | ||
968 | } | ||
969 | |||
970 | public void llCollisionSound(string impact_sound, double impact_volume) | ||
971 | { | ||
972 | m_LSL_Functions.llCollisionSound(impact_sound, impact_volume); | ||
973 | } | ||
974 | |||
975 | public void llCollisionSprite(string impact_sprite) | ||
976 | { | ||
977 | m_LSL_Functions.llCollisionSprite(impact_sprite); | ||
978 | } | ||
979 | |||
980 | public string llGetAnimation(string id) | ||
981 | { | ||
982 | return m_LSL_Functions.llGetAnimation(id); | ||
983 | } | ||
984 | |||
985 | public void llResetScript() | ||
986 | { | ||
987 | m_LSL_Functions.llResetScript(); | ||
988 | } | ||
989 | |||
990 | public void llMessageLinked(int linknum, int num, string str, string id) | ||
991 | { | ||
992 | m_LSL_Functions.llMessageLinked(linknum, num, str, id); | ||
993 | } | ||
994 | |||
995 | public void llPushObject(string target, vector impulse, vector ang_impulse, int local) | ||
996 | { | ||
997 | m_LSL_Functions.llPushObject(target, impulse, ang_impulse, local); | ||
998 | } | ||
999 | |||
1000 | public void llPassCollisions(int pass) | ||
1001 | { | ||
1002 | m_LSL_Functions.llPassCollisions(pass); | ||
1003 | } | ||
1004 | |||
1005 | public string llGetScriptName() | ||
1006 | { | ||
1007 | return m_LSL_Functions.llGetScriptName(); | ||
1008 | } | ||
1009 | |||
1010 | public int llGetNumberOfSides() | ||
1011 | { | ||
1012 | return m_LSL_Functions.llGetNumberOfSides(); | ||
1013 | } | ||
1014 | |||
1015 | // | ||
1016 | // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs | ||
1017 | // | ||
1018 | public rotation llAxisAngle2Rot(vector axis, double angle) | ||
1019 | { | ||
1020 | return m_LSL_Functions.llAxisAngle2Rot(axis, angle); | ||
1021 | } | ||
1022 | |||
1023 | public vector llRot2Axis(rotation rot) | ||
1024 | { | ||
1025 | return m_LSL_Functions.llRot2Axis(rot); | ||
1026 | } | ||
1027 | |||
1028 | public void llRot2Angle() | ||
1029 | { | ||
1030 | m_LSL_Functions.llRot2Angle(); | ||
1031 | } | ||
1032 | |||
1033 | public double llAcos(double val) | ||
1034 | { | ||
1035 | return m_LSL_Functions.llAcos(val); | ||
1036 | } | ||
1037 | |||
1038 | public double llAsin(double val) | ||
1039 | { | ||
1040 | return m_LSL_Functions.llAsin(val); | ||
1041 | } | ||
1042 | |||
1043 | public double llAngleBetween(rotation a, rotation b) | ||
1044 | { | ||
1045 | return m_LSL_Functions.llAngleBetween(a, b); | ||
1046 | } | ||
1047 | |||
1048 | public string llGetInventoryKey(string name) | ||
1049 | { | ||
1050 | return m_LSL_Functions.llGetInventoryKey(name); | ||
1051 | } | ||
1052 | |||
1053 | public void llAllowInventoryDrop(int add) | ||
1054 | { | ||
1055 | m_LSL_Functions.llAllowInventoryDrop(add); | ||
1056 | } | ||
1057 | |||
1058 | public vector llGetSunDirection() | ||
1059 | { | ||
1060 | return m_LSL_Functions.llGetSunDirection(); | ||
1061 | } | ||
1062 | |||
1063 | public vector llGetTextureOffset(int face) | ||
1064 | { | ||
1065 | return m_LSL_Functions.llGetTextureOffset(face); | ||
1066 | } | ||
1067 | |||
1068 | public vector llGetTextureScale(int side) | ||
1069 | { | ||
1070 | return m_LSL_Functions.llGetTextureScale(side); | ||
1071 | } | ||
1072 | |||
1073 | public double llGetTextureRot(int side) | ||
1074 | { | ||
1075 | return m_LSL_Functions.llGetTextureRot(side); | ||
1076 | } | ||
1077 | |||
1078 | public int llSubStringIndex(string source, string pattern) | ||
1079 | { | ||
1080 | return m_LSL_Functions.llSubStringIndex(source, pattern); | ||
1081 | } | ||
1082 | |||
1083 | public string llGetOwnerKey(string id) | ||
1084 | { | ||
1085 | return m_LSL_Functions.llGetOwnerKey(id); | ||
1086 | } | ||
1087 | |||
1088 | public vector llGetCenterOfMass() | ||
1089 | { | ||
1090 | return m_LSL_Functions.llGetCenterOfMass(); | ||
1091 | } | ||
1092 | |||
1093 | public LSL_Types.list llListSort(LSL_Types.list src, int stride, int ascending) | ||
1094 | { | ||
1095 | return m_LSL_Functions.llListSort(src, stride, ascending); | ||
1096 | } | ||
1097 | |||
1098 | public int llGetListLength(LSL_Types.list src) | ||
1099 | { | ||
1100 | return m_LSL_Functions.llGetListLength(src); | ||
1101 | } | ||
1102 | |||
1103 | // | ||
1104 | // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs | ||
1105 | // | ||
1106 | public int llList2Integer(LSL_Types.list src, int index) | ||
1107 | { | ||
1108 | return m_LSL_Functions.llList2Integer(src, index); | ||
1109 | } | ||
1110 | |||
1111 | public double osList2Double(LSL_Types.list src, int index) | ||
1112 | { | ||
1113 | return m_LSL_Functions.osList2Double(src, index); | ||
1114 | } | ||
1115 | |||
1116 | public string llList2String(LSL_Types.list src, int index) | ||
1117 | { | ||
1118 | return m_LSL_Functions.llList2String(src, index); | ||
1119 | } | ||
1120 | |||
1121 | public string llList2Key(LSL_Types.list src, int index) | ||
1122 | { | ||
1123 | return m_LSL_Functions.llList2Key(src, index); | ||
1124 | } | ||
1125 | |||
1126 | public vector llList2Vector(LSL_Types.list src, int index) | ||
1127 | { | ||
1128 | return m_LSL_Functions.llList2Vector(src, index); | ||
1129 | } | ||
1130 | |||
1131 | public rotation llList2Rot(LSL_Types.list src, int index) | ||
1132 | { | ||
1133 | return m_LSL_Functions.llList2Rot(src, index); | ||
1134 | } | ||
1135 | |||
1136 | public LSL_Types.list llList2List(LSL_Types.list src, int start, int end) | ||
1137 | { | ||
1138 | return m_LSL_Functions.llList2List(src, start, end); | ||
1139 | } | ||
1140 | |||
1141 | public LSL_Types.list llDeleteSubList(LSL_Types.list src, int start, int end) | ||
1142 | { | ||
1143 | return m_LSL_Functions.llDeleteSubList(src, start, end); | ||
1144 | } | ||
1145 | |||
1146 | public int llGetListEntryType(LSL_Types.list src, int index) | ||
1147 | { | ||
1148 | return m_LSL_Functions.llGetListEntryType(src, index); | ||
1149 | } | ||
1150 | |||
1151 | public string llList2CSV(LSL_Types.list src) | ||
1152 | { | ||
1153 | return m_LSL_Functions.llList2CSV(src); | ||
1154 | } | ||
1155 | |||
1156 | public LSL_Types.list llCSV2List(string src) | ||
1157 | { | ||
1158 | return m_LSL_Functions.llCSV2List(src); | ||
1159 | } | ||
1160 | |||
1161 | public LSL_Types.list llListRandomize(LSL_Types.list src, int stride) | ||
1162 | { | ||
1163 | return m_LSL_Functions.llListRandomize(src, stride); | ||
1164 | } | ||
1165 | |||
1166 | public LSL_Types.list llList2ListStrided(LSL_Types.list src, int start, int end, int stride) | ||
1167 | { | ||
1168 | return m_LSL_Functions.llList2ListStrided(src, start, end, stride); | ||
1169 | } | ||
1170 | |||
1171 | public vector llGetRegionCorner() | ||
1172 | { | ||
1173 | return m_LSL_Functions.llGetRegionCorner(); | ||
1174 | } | ||
1175 | |||
1176 | public LSL_Types.list llListInsertList(LSL_Types.list dest, LSL_Types.list src, int start) | ||
1177 | { | ||
1178 | return m_LSL_Functions.llListInsertList(dest, src, start); | ||
1179 | } | ||
1180 | |||
1181 | public int llListFindList(LSL_Types.list src, LSL_Types.list test) | ||
1182 | { | ||
1183 | return m_LSL_Functions.llListFindList(src, test); | ||
1184 | } | ||
1185 | |||
1186 | public string llGetObjectName() | ||
1187 | { | ||
1188 | return m_LSL_Functions.llGetObjectName(); | ||
1189 | } | ||
1190 | |||
1191 | public void llSetObjectName(string name) | ||
1192 | { | ||
1193 | m_LSL_Functions.llSetObjectName(name); | ||
1194 | } | ||
1195 | |||
1196 | public string llGetDate() | ||
1197 | { | ||
1198 | return m_LSL_Functions.llGetDate(); | ||
1199 | } | ||
1200 | |||
1201 | public int llEdgeOfWorld(vector pos, vector dir) | ||
1202 | { | ||
1203 | return m_LSL_Functions.llEdgeOfWorld(pos, dir); | ||
1204 | } | ||
1205 | |||
1206 | public int llGetAgentInfo(string id) | ||
1207 | { | ||
1208 | return m_LSL_Functions.llGetAgentInfo(id); | ||
1209 | } | ||
1210 | |||
1211 | // | ||
1212 | // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs | ||
1213 | // | ||
1214 | public void llAdjustSoundVolume(double volume) | ||
1215 | { | ||
1216 | m_LSL_Functions.llAdjustSoundVolume(volume); | ||
1217 | } | ||
1218 | |||
1219 | public void llSetSoundQueueing(int queue) | ||
1220 | { | ||
1221 | m_LSL_Functions.llSetSoundQueueing(queue); | ||
1222 | } | ||
1223 | |||
1224 | public void llSetSoundRadius(double radius) | ||
1225 | { | ||
1226 | m_LSL_Functions.llSetSoundRadius(radius); | ||
1227 | } | ||
1228 | |||
1229 | public string llKey2Name(string id) | ||
1230 | { | ||
1231 | return m_LSL_Functions.llKey2Name(id); | ||
1232 | } | ||
1233 | |||
1234 | public void llSetTextureAnim(int mode, int face, int sizex, int sizey, double start, double length, double rate) | ||
1235 | { | ||
1236 | m_LSL_Functions.llSetTextureAnim(mode, face, sizex, sizey, start, length, rate); | ||
1237 | } | ||
1238 | |||
1239 | public void llTriggerSoundLimited(string sound, double volume, vector top_north_east, vector bottom_south_west) | ||
1240 | { | ||
1241 | m_LSL_Functions.llTriggerSoundLimited(sound, volume, top_north_east, bottom_south_west); | ||
1242 | } | ||
1243 | |||
1244 | public void llEjectFromLand(string pest) | ||
1245 | { | ||
1246 | m_LSL_Functions.llEjectFromLand(pest); | ||
1247 | } | ||
1248 | |||
1249 | public LSL_Types.list llParseString2List(string str, LSL_Types.list separators, LSL_Types.list spacers) | ||
1250 | { | ||
1251 | return m_LSL_Functions.llParseString2List(str,separators,spacers); | ||
1252 | } | ||
1253 | |||
1254 | public int llOverMyLand(string id) | ||
1255 | { | ||
1256 | return m_LSL_Functions.llOverMyLand(id); | ||
1257 | } | ||
1258 | |||
1259 | public string llGetLandOwnerAt(vector pos) | ||
1260 | { | ||
1261 | return m_LSL_Functions.llGetLandOwnerAt(pos); | ||
1262 | } | ||
1263 | |||
1264 | public string llGetNotecardLine(string name, int line) | ||
1265 | { | ||
1266 | return m_LSL_Functions.llGetNotecardLine(name, line); | ||
1267 | } | ||
1268 | |||
1269 | public vector llGetAgentSize(string id) | ||
1270 | { | ||
1271 | return m_LSL_Functions.llGetAgentSize(id); | ||
1272 | } | ||
1273 | |||
1274 | public int llSameGroup(string agent) | ||
1275 | { | ||
1276 | return m_LSL_Functions.llSameGroup(agent); | ||
1277 | } | ||
1278 | |||
1279 | public void llUnSit(string id) | ||
1280 | { | ||
1281 | m_LSL_Functions.llUnSit(id); | ||
1282 | } | ||
1283 | |||
1284 | public vector llGroundSlope(vector offset) | ||
1285 | { | ||
1286 | return m_LSL_Functions.llGroundSlope(offset); | ||
1287 | } | ||
1288 | |||
1289 | public vector llGroundNormal(vector offset) | ||
1290 | { | ||
1291 | return m_LSL_Functions.llGroundNormal(offset); | ||
1292 | } | ||
1293 | |||
1294 | public vector llGroundContour(vector offset) | ||
1295 | { | ||
1296 | return m_LSL_Functions.llGroundContour(offset); | ||
1297 | } | ||
1298 | |||
1299 | public int llGetAttached() | ||
1300 | { | ||
1301 | return m_LSL_Functions.llGetAttached(); | ||
1302 | } | ||
1303 | |||
1304 | public int llGetFreeMemory() | ||
1305 | { | ||
1306 | return m_LSL_Functions.llGetFreeMemory(); | ||
1307 | } | ||
1308 | |||
1309 | public string llGetRegionName() | ||
1310 | { | ||
1311 | return m_LSL_Functions.llGetRegionName(); | ||
1312 | } | ||
1313 | |||
1314 | public double llGetRegionTimeDilation() | ||
1315 | { | ||
1316 | return m_LSL_Functions.llGetRegionTimeDilation(); | ||
1317 | } | ||
1318 | |||
1319 | public double llGetRegionFPS() | ||
1320 | { | ||
1321 | return m_LSL_Functions.llGetRegionFPS(); | ||
1322 | } | ||
1323 | |||
1324 | // | ||
1325 | // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs | ||
1326 | // | ||
1327 | public void llParticleSystem(LSL_Types.list rules) | ||
1328 | { | ||
1329 | m_LSL_Functions.llParticleSystem(rules); | ||
1330 | } | ||
1331 | |||
1332 | public void llGroundRepel(double height, int water, double tau) | ||
1333 | { | ||
1334 | m_LSL_Functions.llGroundRepel(height, water, tau); | ||
1335 | } | ||
1336 | |||
1337 | public void llGiveInventoryList() | ||
1338 | { | ||
1339 | m_LSL_Functions.llGiveInventoryList(); | ||
1340 | } | ||
1341 | |||
1342 | public void llSetVehicleType(int type) | ||
1343 | { | ||
1344 | m_LSL_Functions.llSetVehicleType(type); | ||
1345 | } | ||
1346 | |||
1347 | public void llSetVehicledoubleParam(int param, double value) | ||
1348 | { | ||
1349 | m_LSL_Functions.llSetVehicledoubleParam(param, value); | ||
1350 | } | ||
1351 | |||
1352 | public void llSetVehicleVectorParam(int param, vector vec) | ||
1353 | { | ||
1354 | m_LSL_Functions.llSetVehicleVectorParam(param, vec); | ||
1355 | } | ||
1356 | |||
1357 | public void llSetVehicleRotationParam(int param, rotation rot) | ||
1358 | { | ||
1359 | m_LSL_Functions.llSetVehicleRotationParam(param, rot); | ||
1360 | } | ||
1361 | |||
1362 | public void llSetVehicleFlags(int flags) | ||
1363 | { | ||
1364 | m_LSL_Functions.llSetVehicleFlags(flags); | ||
1365 | } | ||
1366 | |||
1367 | public void llRemoveVehicleFlags(int flags) | ||
1368 | { | ||
1369 | m_LSL_Functions.llRemoveVehicleFlags(flags); | ||
1370 | } | ||
1371 | |||
1372 | public void llSitTarget(vector offset, rotation rot) | ||
1373 | { | ||
1374 | m_LSL_Functions.llSitTarget(offset, rot); | ||
1375 | } | ||
1376 | |||
1377 | public string llAvatarOnSitTarget() | ||
1378 | { | ||
1379 | return m_LSL_Functions.llAvatarOnSitTarget(); | ||
1380 | } | ||
1381 | |||
1382 | public void llAddToLandPassList(string avatar, double hours) | ||
1383 | { | ||
1384 | m_LSL_Functions.llAddToLandPassList(avatar, hours); | ||
1385 | } | ||
1386 | |||
1387 | public void llSetTouchText(string text) | ||
1388 | { | ||
1389 | m_LSL_Functions.llSetTouchText(text); | ||
1390 | } | ||
1391 | |||
1392 | public void llSetSitText(string text) | ||
1393 | { | ||
1394 | m_LSL_Functions.llSetSitText(text); | ||
1395 | } | ||
1396 | |||
1397 | public void llSetCameraEyeOffset(vector offset) | ||
1398 | { | ||
1399 | m_LSL_Functions.llSetCameraEyeOffset(offset); | ||
1400 | } | ||
1401 | |||
1402 | public void llSetCameraAtOffset(vector offset) | ||
1403 | { | ||
1404 | m_LSL_Functions.llSetCameraAtOffset(offset); | ||
1405 | } | ||
1406 | |||
1407 | public string llDumpList2String(LSL_Types.list src, string seperator) | ||
1408 | { | ||
1409 | return m_LSL_Functions.llDumpList2String(src, seperator); | ||
1410 | } | ||
1411 | |||
1412 | public void llScriptDanger(vector pos) | ||
1413 | { | ||
1414 | m_LSL_Functions.llScriptDanger(pos); | ||
1415 | } | ||
1416 | |||
1417 | public void llDialog(string avatar, string message, LSL_Types.list buttons, int chat_channel) | ||
1418 | { | ||
1419 | m_LSL_Functions.llDialog(avatar, message, buttons, chat_channel); | ||
1420 | } | ||
1421 | |||
1422 | public void llVolumeDetect(int detect) | ||
1423 | { | ||
1424 | m_LSL_Functions.llVolumeDetect(detect); | ||
1425 | } | ||
1426 | |||
1427 | public void llResetOtherScript(string name) | ||
1428 | { | ||
1429 | m_LSL_Functions.llResetOtherScript(name); | ||
1430 | } | ||
1431 | |||
1432 | public int llGetScriptState(string name) | ||
1433 | { | ||
1434 | return m_LSL_Functions.llGetScriptState(name); | ||
1435 | } | ||
1436 | |||
1437 | public void llRemoteLoadScript() | ||
1438 | { | ||
1439 | m_LSL_Functions.llRemoteLoadScript(); | ||
1440 | } | ||
1441 | |||
1442 | public void llSetRemoteScriptAccessPin(int pin) | ||
1443 | { | ||
1444 | m_LSL_Functions.llSetRemoteScriptAccessPin(pin); | ||
1445 | } | ||
1446 | |||
1447 | public void llRemoteLoadScriptPin(string target, string name, int pin, int running, int start_param) | ||
1448 | { | ||
1449 | m_LSL_Functions.llRemoteLoadScriptPin(target, name, pin, running, start_param); | ||
1450 | } | ||
1451 | |||
1452 | // | ||
1453 | // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs | ||
1454 | // | ||
1455 | public void llOpenRemoteDataChannel() | ||
1456 | { | ||
1457 | m_LSL_Functions.llOpenRemoteDataChannel(); | ||
1458 | } | ||
1459 | |||
1460 | public string llSendRemoteData(string channel, string dest, int idata, string sdata) | ||
1461 | { | ||
1462 | return m_LSL_Functions.llSendRemoteData(channel, dest, idata, sdata); | ||
1463 | } | ||
1464 | |||
1465 | public void llRemoteDataReply(string channel, string message_id, string sdata, int idata) | ||
1466 | { | ||
1467 | m_LSL_Functions.llRemoteDataReply(channel, message_id, sdata, idata); | ||
1468 | } | ||
1469 | |||
1470 | public void llCloseRemoteDataChannel(string channel) | ||
1471 | { | ||
1472 | m_LSL_Functions.llCloseRemoteDataChannel(channel); | ||
1473 | } | ||
1474 | |||
1475 | public string llMD5String(string src, int nonce) | ||
1476 | { | ||
1477 | return m_LSL_Functions.llMD5String(src, nonce); | ||
1478 | } | ||
1479 | |||
1480 | public void llSetPrimitiveParams(LSL_Types.list rules) | ||
1481 | { | ||
1482 | m_LSL_Functions.llSetPrimitiveParams(rules); | ||
1483 | } | ||
1484 | |||
1485 | public string llStringToBase64(string str) | ||
1486 | { | ||
1487 | return m_LSL_Functions.llStringToBase64(str); | ||
1488 | } | ||
1489 | |||
1490 | public string llBase64ToString(string str) | ||
1491 | { | ||
1492 | return m_LSL_Functions.llBase64ToString(str); | ||
1493 | } | ||
1494 | |||
1495 | public void llXorBase64Strings() | ||
1496 | { | ||
1497 | m_LSL_Functions.llXorBase64Strings(); | ||
1498 | } | ||
1499 | |||
1500 | public void llRemoteDataSetRegion() | ||
1501 | { | ||
1502 | m_LSL_Functions.llRemoteDataSetRegion(); | ||
1503 | } | ||
1504 | |||
1505 | public double llLog10(double val) | ||
1506 | { | ||
1507 | return m_LSL_Functions.llLog10(val); | ||
1508 | } | ||
1509 | |||
1510 | public double llLog(double val) | ||
1511 | { | ||
1512 | return m_LSL_Functions.llLog(val); | ||
1513 | } | ||
1514 | |||
1515 | public LSL_Types.list llGetAnimationList(string id) | ||
1516 | { | ||
1517 | return m_LSL_Functions.llGetAnimationList(id); | ||
1518 | } | ||
1519 | |||
1520 | public void llSetParcelMusicURL(string url) | ||
1521 | { | ||
1522 | m_LSL_Functions.llSetParcelMusicURL(url); | ||
1523 | } | ||
1524 | |||
1525 | public vector llGetRootPosition() | ||
1526 | { | ||
1527 | return m_LSL_Functions.llGetRootPosition(); | ||
1528 | } | ||
1529 | |||
1530 | public rotation llGetRootRotation() | ||
1531 | { | ||
1532 | return m_LSL_Functions.llGetRootRotation(); | ||
1533 | } | ||
1534 | |||
1535 | public string llGetObjectDesc() | ||
1536 | { | ||
1537 | return m_LSL_Functions.llGetObjectDesc(); | ||
1538 | } | ||
1539 | |||
1540 | public void llSetObjectDesc(string desc) | ||
1541 | { | ||
1542 | m_LSL_Functions.llSetObjectDesc(desc); | ||
1543 | } | ||
1544 | |||
1545 | public string llGetCreator() | ||
1546 | { | ||
1547 | return m_LSL_Functions.llGetCreator(); | ||
1548 | } | ||
1549 | |||
1550 | public string llGetTimestamp() | ||
1551 | { | ||
1552 | return m_LSL_Functions.llGetTimestamp(); | ||
1553 | } | ||
1554 | |||
1555 | public void llSetLinkAlpha(int linknumber, double alpha, int face) | ||
1556 | { | ||
1557 | m_LSL_Functions.llSetLinkAlpha(linknumber, alpha, face); | ||
1558 | } | ||
1559 | |||
1560 | public int llGetNumberOfPrims() | ||
1561 | { | ||
1562 | return m_LSL_Functions.llGetNumberOfPrims(); | ||
1563 | } | ||
1564 | |||
1565 | public string llGetNumberOfNotecardLines(string name) | ||
1566 | { | ||
1567 | return m_LSL_Functions.llGetNumberOfNotecardLines(name); | ||
1568 | } | ||
1569 | |||
1570 | public LSL_Types.list llGetBoundingBox(string obj) | ||
1571 | { | ||
1572 | return m_LSL_Functions.llGetBoundingBox(obj); | ||
1573 | } | ||
1574 | |||
1575 | public vector llGetGeometricCenter() | ||
1576 | { | ||
1577 | return m_LSL_Functions.llGetGeometricCenter(); | ||
1578 | } | ||
1579 | |||
1580 | public void llGetPrimitiveParams() | ||
1581 | { | ||
1582 | m_LSL_Functions.llGetPrimitiveParams(); | ||
1583 | } | ||
1584 | |||
1585 | // | ||
1586 | // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs | ||
1587 | // | ||
1588 | public string llIntegerToBase64(int number) | ||
1589 | { | ||
1590 | return m_LSL_Functions.llIntegerToBase64(number); | ||
1591 | } | ||
1592 | |||
1593 | public int llBase64ToInteger(string str) | ||
1594 | { | ||
1595 | return m_LSL_Functions.llBase64ToInteger(str); | ||
1596 | } | ||
1597 | |||
1598 | public double llGetGMTclock() | ||
1599 | { | ||
1600 | return m_LSL_Functions.llGetGMTclock(); | ||
1601 | } | ||
1602 | |||
1603 | public string llGetSimulatorHostname() | ||
1604 | { | ||
1605 | return m_LSL_Functions.llGetSimulatorHostname(); | ||
1606 | } | ||
1607 | |||
1608 | public void llSetLocalRot(rotation rot) | ||
1609 | { | ||
1610 | m_LSL_Functions.llSetLocalRot(rot); | ||
1611 | } | ||
1612 | |||
1613 | public LSL_Types.list llParseStringKeepNulls(string src, LSL_Types.list seperators, LSL_Types.list spacers) | ||
1614 | { | ||
1615 | return m_LSL_Functions.llParseStringKeepNulls(src, seperators, spacers); | ||
1616 | } | ||
1617 | |||
1618 | public void llRezAtRoot(string inventory, vector position, vector velocity, rotation rot, int param) | ||
1619 | { | ||
1620 | m_LSL_Functions.llRezAtRoot(inventory, position, velocity, rot, param); | ||
1621 | } | ||
1622 | |||
1623 | public int llGetObjectPermMask(int mask) | ||
1624 | { | ||
1625 | return m_LSL_Functions.llGetObjectPermMask(mask); | ||
1626 | } | ||
1627 | |||
1628 | public void llSetObjectPermMask(int mask, int value) | ||
1629 | { | ||
1630 | m_LSL_Functions.llSetObjectPermMask(mask, value); | ||
1631 | } | ||
1632 | |||
1633 | public void llGetInventoryPermMask(string item, int mask) | ||
1634 | { | ||
1635 | m_LSL_Functions.llGetInventoryPermMask(item, mask); | ||
1636 | } | ||
1637 | |||
1638 | public void llSetInventoryPermMask(string item, int mask, int value) | ||
1639 | { | ||
1640 | m_LSL_Functions.llSetInventoryPermMask(item, mask, value); | ||
1641 | } | ||
1642 | |||
1643 | public string llGetInventoryCreator(string item) | ||
1644 | { | ||
1645 | return m_LSL_Functions.llGetInventoryCreator(item); | ||
1646 | } | ||
1647 | |||
1648 | public void llOwnerSay(string msg) | ||
1649 | { | ||
1650 | m_LSL_Functions.llOwnerSay(msg); | ||
1651 | } | ||
1652 | |||
1653 | public void llRequestSimulatorData(string simulator, int data) | ||
1654 | { | ||
1655 | m_LSL_Functions.llRequestSimulatorData(simulator, data); | ||
1656 | } | ||
1657 | |||
1658 | public void llForceMouselook(int mouselook) | ||
1659 | { | ||
1660 | m_LSL_Functions.llForceMouselook(mouselook); | ||
1661 | } | ||
1662 | |||
1663 | public double llGetObjectMass(string id) | ||
1664 | { | ||
1665 | return m_LSL_Functions.llGetObjectMass(id); | ||
1666 | } | ||
1667 | |||
1668 | public LSL_Types.list llListReplaceList(LSL_Types.list dest, LSL_Types.list src, int start, int end) | ||
1669 | { | ||
1670 | return m_LSL_Functions.llListReplaceList(dest, src, start, end); | ||
1671 | } | ||
1672 | |||
1673 | public void llLoadURL(string avatar_id, string message, string url) | ||
1674 | { | ||
1675 | m_LSL_Functions.llLoadURL(avatar_id, message, url); | ||
1676 | } | ||
1677 | |||
1678 | public void llParcelMediaCommandList(LSL_Types.list commandList) | ||
1679 | { | ||
1680 | m_LSL_Functions.llParcelMediaCommandList(commandList); | ||
1681 | } | ||
1682 | |||
1683 | public void llParcelMediaQuery() | ||
1684 | { | ||
1685 | m_LSL_Functions.llParcelMediaQuery(); | ||
1686 | } | ||
1687 | |||
1688 | public int llModPow(int a, int b, int c) | ||
1689 | { | ||
1690 | return m_LSL_Functions.llModPow(a, b, c); | ||
1691 | } | ||
1692 | |||
1693 | // | ||
1694 | // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs | ||
1695 | // | ||
1696 | public int llGetInventoryType(string name) | ||
1697 | { | ||
1698 | return m_LSL_Functions.llGetInventoryType(name); | ||
1699 | } | ||
1700 | |||
1701 | public void llSetPayPrice(int price, LSL_Types.list quick_pay_buttons) | ||
1702 | { | ||
1703 | m_LSL_Functions.llSetPayPrice(price, quick_pay_buttons); | ||
1704 | } | ||
1705 | |||
1706 | public vector llGetCameraPos() | ||
1707 | { | ||
1708 | return m_LSL_Functions.llGetCameraPos(); | ||
1709 | } | ||
1710 | |||
1711 | public rotation llGetCameraRot() | ||
1712 | { | ||
1713 | return m_LSL_Functions.llGetCameraRot(); | ||
1714 | } | ||
1715 | |||
1716 | public void llSetPrimURL() | ||
1717 | { | ||
1718 | m_LSL_Functions.llSetPrimURL(); | ||
1719 | } | ||
1720 | |||
1721 | public void llRefreshPrimURL() | ||
1722 | { | ||
1723 | m_LSL_Functions.llRefreshPrimURL(); | ||
1724 | } | ||
1725 | |||
1726 | public string llEscapeURL(string url) | ||
1727 | { | ||
1728 | return m_LSL_Functions.llEscapeURL(url); | ||
1729 | } | ||
1730 | |||
1731 | public string llUnescapeURL(string url) | ||
1732 | { | ||
1733 | return m_LSL_Functions.llUnescapeURL(url); | ||
1734 | } | ||
1735 | |||
1736 | public void llMapDestination(string simname, vector pos, vector look_at) | ||
1737 | { | ||
1738 | m_LSL_Functions.llMapDestination(simname, pos, look_at); | ||
1739 | } | ||
1740 | |||
1741 | public void llAddToLandBanList(string avatar, double hours) | ||
1742 | { | ||
1743 | m_LSL_Functions.llAddToLandBanList(avatar, hours); | ||
1744 | } | ||
1745 | |||
1746 | public void llRemoveFromLandPassList(string avatar) | ||
1747 | { | ||
1748 | m_LSL_Functions.llRemoveFromLandPassList(avatar); | ||
1749 | } | ||
1750 | |||
1751 | public void llRemoveFromLandBanList(string avatar) | ||
1752 | { | ||
1753 | m_LSL_Functions.llRemoveFromLandBanList(avatar); | ||
1754 | } | ||
1755 | |||
1756 | public void llSetCameraParams(LSL_Types.list rules) | ||
1757 | { | ||
1758 | m_LSL_Functions.llSetCameraParams(rules); | ||
1759 | } | ||
1760 | |||
1761 | public void llClearCameraParams() | ||
1762 | { | ||
1763 | m_LSL_Functions.llClearCameraParams(); | ||
1764 | } | ||
1765 | |||
1766 | public double llListStatistics(int operation, LSL_Types.list src) | ||
1767 | { | ||
1768 | return m_LSL_Functions.llListStatistics(operation, src); | ||
1769 | } | ||
1770 | |||
1771 | public int llGetUnixTime() | ||
1772 | { | ||
1773 | return m_LSL_Functions.llGetUnixTime(); | ||
1774 | } | ||
1775 | |||
1776 | public int llGetParcelFlags(vector pos) | ||
1777 | { | ||
1778 | return m_LSL_Functions.llGetParcelFlags(pos); | ||
1779 | } | ||
1780 | |||
1781 | public int llGetRegionFlags() | ||
1782 | { | ||
1783 | return m_LSL_Functions.llGetRegionFlags(); | ||
1784 | } | ||
1785 | |||
1786 | public string llXorBase64StringsCorrect(string str1, string str2) | ||
1787 | { | ||
1788 | return m_LSL_Functions.llXorBase64StringsCorrect(str1, str2); | ||
1789 | } | ||
1790 | |||
1791 | public string llHTTPRequest(string url, LSL_Types.list parameters, string body) | ||
1792 | { | ||
1793 | return m_LSL_Functions.llHTTPRequest(url, parameters, body); | ||
1794 | } | ||
1795 | |||
1796 | public void llResetLandBanList() | ||
1797 | { | ||
1798 | m_LSL_Functions.llResetLandBanList(); | ||
1799 | } | ||
1800 | |||
1801 | public void llResetLandPassList() | ||
1802 | { | ||
1803 | m_LSL_Functions.llResetLandPassList(); | ||
1804 | } | ||
1805 | |||
1806 | public int llGetParcelPrimCount(vector pos, int category, int sim_wide) | ||
1807 | { | ||
1808 | return m_LSL_Functions.llGetParcelPrimCount(pos, category, sim_wide); | ||
1809 | } | ||
1810 | |||
1811 | public LSL_Types.list llGetParcelPrimOwners(vector pos) | ||
1812 | { | ||
1813 | return m_LSL_Functions.llGetParcelPrimOwners(pos); | ||
1814 | } | ||
1815 | |||
1816 | public int llGetObjectPrimCount(string object_id) | ||
1817 | { | ||
1818 | return m_LSL_Functions.llGetObjectPrimCount(object_id); | ||
1819 | } | ||
1820 | |||
1821 | // | ||
1822 | // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs | ||
1823 | // | ||
1824 | public int llGetParcelMaxPrims(vector pos, int sim_wide) | ||
1825 | { | ||
1826 | return m_LSL_Functions.llGetParcelMaxPrims(pos, sim_wide); | ||
1827 | } | ||
1828 | |||
1829 | public LSL_Types.list llGetParcelDetails(vector pos, LSL_Types.list param) | ||
1830 | { | ||
1831 | return m_LSL_Functions.llGetParcelDetails(pos, param); | ||
1832 | } | ||
1833 | |||
1834 | public string llStringTrim(string src, int type) | ||
1835 | { | ||
1836 | return m_LSL_Functions.llStringTrim(src, type); | ||
1837 | } | ||
1838 | |||
1839 | // | ||
1840 | // OpenSim Functions | ||
1841 | // | ||
1842 | public string osSetDynamicTextureURL(string dynamicID, string contentType, string url, string extraParams, | ||
1843 | int timer) | ||
1844 | { | ||
1845 | return m_LSL_Functions.osSetDynamicTextureURL(dynamicID, contentType, url, extraParams, timer); | ||
1846 | } | ||
1847 | |||
1848 | public double osTerrainGetHeight(int x, int y) | ||
1849 | { | ||
1850 | return m_LSL_Functions.osTerrainGetHeight(x, y); | ||
1851 | } | ||
1852 | |||
1853 | public int osTerrainSetHeight(int x, int y, double val) | ||
1854 | { | ||
1855 | return m_LSL_Functions.osTerrainSetHeight(x, y, val); | ||
1856 | } | ||
1857 | |||
1858 | public int osRegionRestart(double seconds) | ||
1859 | { | ||
1860 | return m_LSL_Functions.osRegionRestart(seconds); | ||
1861 | } | ||
1862 | |||
1863 | public void osRegionNotice(string msg) | ||
1864 | { | ||
1865 | m_LSL_Functions.osRegionNotice(msg); | ||
1866 | } | ||
1867 | |||
1868 | public bool osConsoleCommand(string Command) | ||
1869 | { | ||
1870 | return m_LSL_Functions.osConsoleCommand(Command); | ||
1871 | } | ||
1872 | |||
1873 | public double llList2Float(LSL_Types.list src, int index) | ||
1874 | { | ||
1875 | return m_LSL_Functions.llList2Float(src, index); | ||
1876 | } | ||
1877 | |||
1878 | // LSL CONSTANTS | ||
1879 | public const int TRUE = 1; | ||
1880 | public const int FALSE = 0; | ||
1881 | public const int STATUS_PHYSICS = 1; | ||
1882 | public const int STATUS_ROTATE_X = 2; | ||
1883 | public const int STATUS_ROTATE_Y = 4; | ||
1884 | public const int STATUS_ROTATE_Z = 8; | ||
1885 | public const int STATUS_PHANTOM = 16; | ||
1886 | public const int STATUS_SANDBOX = 32; | ||
1887 | public const int STATUS_BLOCK_GRAB = 64; | ||
1888 | public const int STATUS_DIE_AT_EDGE = 128; | ||
1889 | public const int STATUS_RETURN_AT_EDGE = 256; | ||
1890 | public const int STATUS_CAST_SHADOWS = 512; | ||
1891 | public const int AGENT = 1; | ||
1892 | public const int ACTIVE = 2; | ||
1893 | public const int PASSIVE = 4; | ||
1894 | public const int SCRIPTED = 8; | ||
1895 | public const int CONTROL_FWD = 1; | ||
1896 | public const int CONTROL_BACK = 2; | ||
1897 | public const int CONTROL_LEFT = 4; | ||
1898 | public const int CONTROL_RIGHT = 8; | ||
1899 | public const int CONTROL_UP = 16; | ||
1900 | public const int CONTROL_DOWN = 32; | ||
1901 | public const int CONTROL_ROT_LEFT = 256; | ||
1902 | public const int CONTROL_ROT_RIGHT = 512; | ||
1903 | public const int CONTROL_LBUTTON = 268435456; | ||
1904 | public const int CONTROL_ML_LBUTTON = 1073741824; | ||
1905 | public const int PERMISSION_DEBIT = 2; | ||
1906 | public const int PERMISSION_TAKE_CONTROLS = 4; | ||
1907 | public const int PERMISSION_REMAP_CONTROLS = 8; | ||
1908 | public const int PERMISSION_TRIGGER_ANIMATION = 16; | ||
1909 | public const int PERMISSION_ATTACH = 32; | ||
1910 | public const int PERMISSION_RELEASE_OWNERSHIP = 64; | ||
1911 | public const int PERMISSION_CHANGE_LINKS = 128; | ||
1912 | public const int PERMISSION_CHANGE_JOINTS = 256; | ||
1913 | public const int PERMISSION_CHANGE_PERMISSIONS = 512; | ||
1914 | public const int PERMISSION_TRACK_CAMERA = 1024; | ||
1915 | public const int AGENT_FLYING = 1; | ||
1916 | public const int AGENT_ATTACHMENTS = 2; | ||
1917 | public const int AGENT_SCRIPTED = 4; | ||
1918 | public const int AGENT_MOUSELOOK = 8; | ||
1919 | public const int AGENT_SITTING = 16; | ||
1920 | public const int AGENT_ON_OBJECT = 32; | ||
1921 | public const int AGENT_AWAY = 64; | ||
1922 | public const int AGENT_WALKING = 128; | ||
1923 | public const int AGENT_IN_AIR = 256; | ||
1924 | public const int AGENT_TYPING = 512; | ||
1925 | public const int AGENT_CROUCHING = 1024; | ||
1926 | public const int AGENT_BUSY = 2048; | ||
1927 | public const int AGENT_ALWAYS_RUN = 4096; | ||
1928 | public const int PSYS_PART_INTERP_COLOR_MASK = 1; | ||
1929 | public const int PSYS_PART_INTERP_SCALE_MASK = 2; | ||
1930 | public const int PSYS_PART_BOUNCE_MASK = 4; | ||
1931 | public const int PSYS_PART_WIND_MASK = 8; | ||
1932 | public const int PSYS_PART_FOLLOW_SRC_MASK = 16; | ||
1933 | public const int PSYS_PART_FOLLOW_VELOCITY_MASK = 32; | ||
1934 | public const int PSYS_PART_TARGET_POS_MASK = 64; | ||
1935 | public const int PSYS_PART_TARGET_LINEAR_MASK = 128; | ||
1936 | public const int PSYS_PART_EMISSIVE_MASK = 256; | ||
1937 | public const int PSYS_PART_FLAGS = 0; | ||
1938 | public const int PSYS_PART_START_COLOR = 1; | ||
1939 | public const int PSYS_PART_START_ALPHA = 2; | ||
1940 | public const int PSYS_PART_END_COLOR = 3; | ||
1941 | public const int PSYS_PART_END_ALPHA = 4; | ||
1942 | public const int PSYS_PART_START_SCALE = 5; | ||
1943 | public const int PSYS_PART_END_SCALE = 6; | ||
1944 | public const int PSYS_PART_MAX_AGE = 7; | ||
1945 | public const int PSYS_SRC_ACCEL = 8; | ||
1946 | public const int PSYS_SRC_PATTERN = 9; | ||
1947 | public const int PSYS_SRC_INNERANGLE = 10; | ||
1948 | public const int PSYS_SRC_OUTERANGLE = 11; | ||
1949 | public const int PSYS_SRC_TEXTURE = 12; | ||
1950 | public const int PSYS_SRC_BURST_RATE = 13; | ||
1951 | public const int PSYS_SRC_BURST_PART_COUNT = 15; | ||
1952 | public const int PSYS_SRC_BURST_RADIUS = 16; | ||
1953 | public const int PSYS_SRC_BURST_SPEED_MIN = 17; | ||
1954 | public const int PSYS_SRC_BURST_SPEED_MAX = 18; | ||
1955 | public const int PSYS_SRC_MAX_AGE = 19; | ||
1956 | public const int PSYS_SRC_TARGET_KEY = 20; | ||
1957 | public const int PSYS_SRC_OMEGA = 21; | ||
1958 | public const int PSYS_SRC_ANGLE_BEGIN = 22; | ||
1959 | public const int PSYS_SRC_ANGLE_END = 23; | ||
1960 | public const int PSYS_SRC_PATTERN_DROP = 1; | ||
1961 | public const int PSYS_SRC_PATTERN_EXPLODE = 2; | ||
1962 | public const int PSYS_SRC_PATTERN_ANGLE = 4; | ||
1963 | public const int PSYS_SRC_PATTERN_ANGLE_CONE = 8; | ||
1964 | public const int PSYS_SRC_PATTERN_ANGLE_CONE_EMPTY = 16; | ||
1965 | public const int VEHICLE_TYPE_NONE = 0; | ||
1966 | public const int VEHICLE_TYPE_SLED = 1; | ||
1967 | public const int VEHICLE_TYPE_CAR = 2; | ||
1968 | public const int VEHICLE_TYPE_BOAT = 3; | ||
1969 | public const int VEHICLE_TYPE_AIRPLANE = 4; | ||
1970 | public const int VEHICLE_TYPE_BALLOON = 5; | ||
1971 | public const int VEHICLE_LINEAR_FRICTION_TIMESCALE = 16; | ||
1972 | public const int VEHICLE_ANGULAR_FRICTION_TIMESCALE = 17; | ||
1973 | public const int VEHICLE_LINEAR_MOTOR_DIRECTION = 18; | ||
1974 | public const int VEHICLE_LINEAR_MOTOR_OFFSET = 20; | ||
1975 | public const int VEHICLE_ANGULAR_MOTOR_DIRECTION = 19; | ||
1976 | public const int VEHICLE_HOVER_HEIGHT = 24; | ||
1977 | public const int VEHICLE_HOVER_EFFICIENCY = 25; | ||
1978 | public const int VEHICLE_HOVER_TIMESCALE = 26; | ||
1979 | public const int VEHICLE_BUOYANCY = 27; | ||
1980 | public const int VEHICLE_LINEAR_DEFLECTION_EFFICIENCY = 28; | ||
1981 | public const int VEHICLE_LINEAR_DEFLECTION_TIMESCALE = 29; | ||
1982 | public const int VEHICLE_LINEAR_MOTOR_TIMESCALE = 30; | ||
1983 | public const int VEHICLE_LINEAR_MOTOR_DECAY_TIMESCALE = 31; | ||
1984 | public const int VEHICLE_ANGULAR_DEFLECTION_EFFICIENCY = 32; | ||
1985 | public const int VEHICLE_ANGULAR_DEFLECTION_TIMESCALE = 33; | ||
1986 | public const int VEHICLE_ANGULAR_MOTOR_TIMESCALE = 34; | ||
1987 | public const int VEHICLE_ANGULAR_MOTOR_DECAY_TIMESCALE = 35; | ||
1988 | public const int VEHICLE_VERTICAL_ATTRACTION_EFFICIENCY = 36; | ||
1989 | public const int VEHICLE_VERTICAL_ATTRACTION_TIMESCALE = 37; | ||
1990 | public const int VEHICLE_BANKING_EFFICIENCY = 38; | ||
1991 | public const int VEHICLE_BANKING_MIX = 39; | ||
1992 | public const int VEHICLE_BANKING_TIMESCALE = 40; | ||
1993 | public const int VEHICLE_REFERENCE_FRAME = 44; | ||
1994 | public const int VEHICLE_FLAG_NO_DEFLECTION_UP = 1; | ||
1995 | public const int VEHICLE_FLAG_LIMIT_ROLL_ONLY = 2; | ||
1996 | public const int VEHICLE_FLAG_HOVER_WATER_ONLY = 4; | ||
1997 | public const int VEHICLE_FLAG_HOVER_TERRAIN_ONLY = 8; | ||
1998 | public const int VEHICLE_FLAG_HOVER_GLOBAL_HEIGHT = 16; | ||
1999 | public const int VEHICLE_FLAG_HOVER_UP_ONLY = 32; | ||
2000 | public const int VEHICLE_FLAG_LIMIT_MOTOR_UP = 64; | ||
2001 | public const int VEHICLE_FLAG_MOUSELOOK_STEER = 128; | ||
2002 | public const int VEHICLE_FLAG_MOUSELOOK_BANK = 256; | ||
2003 | public const int VEHICLE_FLAG_CAMERA_DECOUPLED = 512; | ||
2004 | public const int INVENTORY_ALL = -1; | ||
2005 | public const int INVENTORY_NONE = -1; | ||
2006 | public const int INVENTORY_TEXTURE = 0; | ||
2007 | public const int INVENTORY_SOUND = 1; | ||
2008 | public const int INVENTORY_LANDMARK = 3; | ||
2009 | public const int INVENTORY_CLOTHING = 5; | ||
2010 | public const int INVENTORY_OBJECT = 6; | ||
2011 | public const int INVENTORY_NOTECARD = 7; | ||
2012 | public const int INVENTORY_SCRIPT = 10; | ||
2013 | public const int INVENTORY_BODYPART = 13; | ||
2014 | public const int INVENTORY_ANIMATION = 20; | ||
2015 | public const int INVENTORY_GESTURE = 21; | ||
2016 | public const int ATTACH_CHEST = 1; | ||
2017 | public const int ATTACH_HEAD = 2; | ||
2018 | public const int ATTACH_LSHOULDER = 3; | ||
2019 | public const int ATTACH_RSHOULDER = 4; | ||
2020 | public const int ATTACH_LHAND = 5; | ||
2021 | public const int ATTACH_RHAND = 6; | ||
2022 | public const int ATTACH_LFOOT = 7; | ||
2023 | public const int ATTACH_RFOOT = 8; | ||
2024 | public const int ATTACH_BACK = 9; | ||
2025 | public const int ATTACH_PELVIS = 10; | ||
2026 | public const int ATTACH_MOUTH = 11; | ||
2027 | public const int ATTACH_CHIN = 12; | ||
2028 | public const int ATTACH_LEAR = 13; | ||
2029 | public const int ATTACH_REAR = 14; | ||
2030 | public const int ATTACH_LEYE = 15; | ||
2031 | public const int ATTACH_REYE = 16; | ||
2032 | public const int ATTACH_NOSE = 17; | ||
2033 | public const int ATTACH_RUARM = 18; | ||
2034 | public const int ATTACH_RLARM = 19; | ||
2035 | public const int ATTACH_LUARM = 20; | ||
2036 | public const int ATTACH_LLARM = 21; | ||
2037 | public const int ATTACH_RHIP = 22; | ||
2038 | public const int ATTACH_RULEG = 23; | ||
2039 | public const int ATTACH_RLLEG = 24; | ||
2040 | public const int ATTACH_LHIP = 25; | ||
2041 | public const int ATTACH_LULEG = 26; | ||
2042 | public const int ATTACH_LLLEG = 27; | ||
2043 | public const int ATTACH_BELLY = 28; | ||
2044 | public const int ATTACH_RPEC = 29; | ||
2045 | public const int ATTACH_LPEC = 30; | ||
2046 | public const int LAND_LEVEL = 0; | ||
2047 | public const int LAND_RAISE = 1; | ||
2048 | public const int LAND_LOWER = 2; | ||
2049 | public const int LAND_SMOOTH = 3; | ||
2050 | public const int LAND_NOISE = 4; | ||
2051 | public const int LAND_REVERT = 5; | ||
2052 | public const int LAND_SMALL_BRUSH = 1; | ||
2053 | public const int LAND_MEDIUM_BRUSH = 2; | ||
2054 | public const int LAND_LARGE_BRUSH = 3; | ||
2055 | public const int DATA_ONLINE = 1; | ||
2056 | public const int DATA_NAME = 2; | ||
2057 | public const int DATA_BORN = 3; | ||
2058 | public const int DATA_RATING = 4; | ||
2059 | public const int DATA_SIM_POS = 5; | ||
2060 | public const int DATA_SIM_STATUS = 6; | ||
2061 | public const int DATA_SIM_RATING = 7; | ||
2062 | public const int ANIM_ON = 1; | ||
2063 | public const int LOOP = 2; | ||
2064 | public const int REVERSE = 4; | ||
2065 | public const int PING_PONG = 8; | ||
2066 | public const int SMOOTH = 16; | ||
2067 | public const int ROTATE = 32; | ||
2068 | public const int SCALE = 64; | ||
2069 | public const int ALL_SIDES = -1; | ||
2070 | public const int LINK_SET = -1; | ||
2071 | public const int LINK_ROOT = 1; | ||
2072 | public const int LINK_ALL_OTHERS = -2; | ||
2073 | public const int LINK_ALL_CHILDREN = -3; | ||
2074 | public const int LINK_THIS = -4; | ||
2075 | public const int CHANGED_INVENTORY = 1; | ||
2076 | public const int CHANGED_COLOR = 2; | ||
2077 | public const int CHANGED_SHAPE = 4; | ||
2078 | public const int CHANGED_SCALE = 8; | ||
2079 | public const int CHANGED_TEXTURE = 16; | ||
2080 | public const int CHANGED_LINK = 32; | ||
2081 | public const int CHANGED_ALLOWED_DROP = 64; | ||
2082 | public const int CHANGED_OWNER = 128; | ||
2083 | public const int TYPE_INVALID = 0; | ||
2084 | public const int TYPE_INTEGER = 1; | ||
2085 | public const int TYPE_double = 2; | ||
2086 | public const int TYPE_STRING = 3; | ||
2087 | public const int TYPE_KEY = 4; | ||
2088 | public const int TYPE_VECTOR = 5; | ||
2089 | public const int TYPE_ROTATION = 6; | ||
2090 | public const int REMOTE_DATA_CHANNEL = 1; | ||
2091 | public const int REMOTE_DATA_REQUEST = 2; | ||
2092 | public const int REMOTE_DATA_REPLY = 3; | ||
2093 | public const int HTTP_METHOD = 0; | ||
2094 | public const int HTTP_MIMETYPE = 1; | ||
2095 | public const int HTTP_BODY_MAXLENGTH = 2; | ||
2096 | public const int HTTP_VERIFY_CERT = 3; | ||
2097 | |||
2098 | public const int PRIM_MATERIAL = 2; | ||
2099 | public const int PRIM_PHYSICS = 3; | ||
2100 | public const int PRIM_TEMP_ON_REZ = 4; | ||
2101 | public const int PRIM_PHANTOM = 5; | ||
2102 | public const int PRIM_POSITION = 6; | ||
2103 | public const int PRIM_SIZE = 7; | ||
2104 | public const int PRIM_ROTATION = 8; | ||
2105 | public const int PRIM_TYPE = 9; | ||
2106 | public const int PRIM_TEXTURE = 17; | ||
2107 | public const int PRIM_COLOR = 18; | ||
2108 | public const int PRIM_BUMP_SHINY = 19; | ||
2109 | public const int PRIM_FULLBRIGHT = 20; | ||
2110 | public const int PRIM_FLEXIBLE = 21; | ||
2111 | public const int PRIM_TEXGEN = 22; | ||
2112 | public const int PRIM_CAST_SHADOWS = 24; // Not implemented, here for completeness sake | ||
2113 | public const int PRIM_POINT_LIGHT = 23; // Huh? | ||
2114 | public const int PRIM_TEXGEN_DEFAULT = 0; | ||
2115 | public const int PRIM_TEXGEN_PLANAR = 1; | ||
2116 | public const int PRIM_TYPE_BOX = 0; | ||
2117 | public const int PRIM_TYPE_CYLINDER = 1; | ||
2118 | public const int PRIM_TYPE_PRISM = 2; | ||
2119 | public const int PRIM_TYPE_SPHERE = 3; | ||
2120 | public const int PRIM_TYPE_TORUS = 4; | ||
2121 | public const int PRIM_TYPE_TUBE = 5; | ||
2122 | public const int PRIM_TYPE_RING = 6; | ||
2123 | public const int PRIM_TYPE_SCULPT = 7; | ||
2124 | public const int PRIM_HOLE_DEFAULT = 0; | ||
2125 | public const int PRIM_HOLE_CIRCLE = 16; | ||
2126 | public const int PRIM_HOLE_SQUARE = 32; | ||
2127 | public const int PRIM_HOLE_TRIANGLE = 48; | ||
2128 | public const int PRIM_MATERIAL_STONE = 0; | ||
2129 | public const int PRIM_MATERIAL_METAL = 1; | ||
2130 | public const int PRIM_MATERIAL_GLASS = 2; | ||
2131 | public const int PRIM_MATERIAL_WOOD = 3; | ||
2132 | public const int PRIM_MATERIAL_FLESH = 4; | ||
2133 | public const int PRIM_MATERIAL_PLASTIC = 5; | ||
2134 | public const int PRIM_MATERIAL_RUBBER = 6; | ||
2135 | public const int PRIM_MATERIAL_LIGHT = 7; | ||
2136 | public const int PRIM_SHINY_NONE = 0; | ||
2137 | public const int PRIM_SHINY_LOW = 1; | ||
2138 | public const int PRIM_SHINY_MEDIUM = 2; | ||
2139 | public const int PRIM_SHINY_HIGH = 3; | ||
2140 | public const int PRIM_BUMP_NONE = 0; | ||
2141 | public const int PRIM_BUMP_BRIGHT = 1; | ||
2142 | public const int PRIM_BUMP_DARK = 2; | ||
2143 | public const int PRIM_BUMP_WOOD = 3; | ||
2144 | public const int PRIM_BUMP_BARK = 4; | ||
2145 | public const int PRIM_BUMP_BRICKS = 5; | ||
2146 | public const int PRIM_BUMP_CHECKER = 6; | ||
2147 | public const int PRIM_BUMP_CONCRETE = 7; | ||
2148 | public const int PRIM_BUMP_TILE = 8; | ||
2149 | public const int PRIM_BUMP_STONE = 9; | ||
2150 | public const int PRIM_BUMP_DISKS = 10; | ||
2151 | public const int PRIM_BUMP_GRAVEL = 11; | ||
2152 | public const int PRIM_BUMP_BLOBS = 12; | ||
2153 | public const int PRIM_BUMP_SIDING = 13; | ||
2154 | public const int PRIM_BUMP_LARGETILE = 14; | ||
2155 | public const int PRIM_BUMP_STUCCO = 15; | ||
2156 | public const int PRIM_BUMP_SUCTION = 16; | ||
2157 | public const int PRIM_BUMP_WEAVE = 17; | ||
2158 | |||
2159 | public const int PRIM_SCULPT_TYPE_SPHERE = 1; | ||
2160 | public const int PRIM_SCULPT_TYPE_TORUS = 2; | ||
2161 | public const int PRIM_SCULPT_TYPE_PLANE = 3; | ||
2162 | public const int PRIM_SCULPT_TYPE_CYLINDER = 4; | ||
2163 | |||
2164 | public const int MASK_BASE = 0; | ||
2165 | public const int MASK_OWNER = 1; | ||
2166 | public const int MASK_GROUP = 2; | ||
2167 | public const int MASK_EVERYONE = 3; | ||
2168 | public const int MASK_NEXT = 4; | ||
2169 | public const int PERM_TRANSFER = 8192; | ||
2170 | public const int PERM_MODIFY = 16384; | ||
2171 | public const int PERM_COPY = 32768; | ||
2172 | public const int PERM_MOVE = 524288; | ||
2173 | public const int PERM_ALL = 2147483647; | ||
2174 | public const int PARCEL_MEDIA_COMMAND_STOP = 0; | ||
2175 | public const int PARCEL_MEDIA_COMMAND_PAUSE = 1; | ||
2176 | public const int PARCEL_MEDIA_COMMAND_PLAY = 2; | ||
2177 | public const int PARCEL_MEDIA_COMMAND_LOOP = 3; | ||
2178 | public const int PARCEL_MEDIA_COMMAND_TEXTURE = 4; | ||
2179 | public const int PARCEL_MEDIA_COMMAND_URL = 5; | ||
2180 | public const int PARCEL_MEDIA_COMMAND_TIME = 6; | ||
2181 | public const int PARCEL_MEDIA_COMMAND_AGENT = 7; | ||
2182 | public const int PARCEL_MEDIA_COMMAND_UNLOAD = 8; | ||
2183 | public const int PARCEL_MEDIA_COMMAND_AUTO_ALIGN = 9; | ||
2184 | public const int PAY_HIDE = -1; | ||
2185 | public const int PAY_DEFAULT = -2; | ||
2186 | public const string NULL_KEY = "00000000-0000-0000-0000-000000000000"; | ||
2187 | public const string EOF = "\n\n\n"; | ||
2188 | public const double PI = 3.14159274f; | ||
2189 | public const double TWO_PI = 6.28318548f; | ||
2190 | public const double PI_BY_TWO = 1.57079637f; | ||
2191 | public const double DEG_TO_RAD = 0.01745329238f; | ||
2192 | public const double RAD_TO_DEG = 57.29578f; | ||
2193 | public const double SQRT2 = 1.414213538f; | ||
2194 | public const int STRING_TRIM_HEAD = 1; | ||
2195 | public const int STRING_TRIM_TAIL = 2; | ||
2196 | public const int STRING_TRIM = 3; | ||
2197 | public const int LIST_STAT_RANGE = 0; | ||
2198 | public const int LIST_STAT_MIN = 1; | ||
2199 | public const int LIST_STAT_MAX = 2; | ||
2200 | public const int LIST_STAT_MEAN = 3; | ||
2201 | public const int LIST_STAT_MEDIAN = 4; | ||
2202 | public const int LIST_STAT_STD_DEV = 5; | ||
2203 | public const int LIST_STAT_SUM = 6; | ||
2204 | public const int LIST_STAT_SUM_SQUARES = 7; | ||
2205 | public const int LIST_STAT_NUM_COUNT = 8; | ||
2206 | public const int LIST_STAT_GEOMETRIC_MEAN = 9; | ||
2207 | public const int LIST_STAT_HARMONIC_MEAN = 100; | ||
2208 | // Can not be public const? | ||
2209 | public vector ZERO_VECTOR = new vector(0.0, 0.0, 0.0); | ||
2210 | public rotation ZERO_ROTATION = new rotation(0.0, 0, 0.0, 1.0); | ||
2211 | } | ||
2212 | } | ||