diff options
author | Adam Frisby | 2008-04-21 07:09:17 +0000 |
---|---|---|
committer | Adam Frisby | 2008-04-21 07:09:17 +0000 |
commit | fef3b3689492dea63693c964bcdbec9f5137eb5e (patch) | |
tree | 7791eef001d85d3e1de863a68f26ff9434d062ca /OpenSim/Region/ScriptEngine/Common | |
parent | * Terrain Module code has been reformatted to comply with guidelines. (diff) | |
download | opensim-SC-fef3b3689492dea63693c964bcdbec9f5137eb5e.zip opensim-SC-fef3b3689492dea63693c964bcdbec9f5137eb5e.tar.gz opensim-SC-fef3b3689492dea63693c964bcdbec9f5137eb5e.tar.bz2 opensim-SC-fef3b3689492dea63693c964bcdbec9f5137eb5e.tar.xz |
* Optimised using statements and namespace references across entire project (this took a while to run).
Diffstat (limited to '')
29 files changed, 168 insertions, 247 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/BuilIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/BuilIn_Commands.cs index a429272..1a50f0b 100644 --- a/OpenSim/Region/ScriptEngine/Common/BuilIn_Commands.cs +++ b/OpenSim/Region/ScriptEngine/Common/BuilIn_Commands.cs | |||
@@ -25,9 +25,6 @@ | |||
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System; | ||
29 | using System.Collections.Generic; | ||
30 | using System.Text; | ||
31 | using libsecondlife; | 28 | using libsecondlife; |
32 | using OpenSim.Region.Environment.Scenes; | 29 | using OpenSim.Region.Environment.Scenes; |
33 | 30 | ||
diff --git a/OpenSim/Region/ScriptEngine/Common/BuiltIn_Commands_BaseClass.cs b/OpenSim/Region/ScriptEngine/Common/BuiltIn_Commands_BaseClass.cs index b6468c2..8aee94e 100644 --- a/OpenSim/Region/ScriptEngine/Common/BuiltIn_Commands_BaseClass.cs +++ b/OpenSim/Region/ScriptEngine/Common/BuiltIn_Commands_BaseClass.cs | |||
@@ -26,15 +26,14 @@ | |||
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System; | 28 | using System; |
29 | using System.Collections.Generic; | ||
30 | using System.Runtime.Remoting.Lifetime; | 29 | using System.Runtime.Remoting.Lifetime; |
31 | using System.Threading; | 30 | using System.Threading; |
32 | using OpenSim.Region.ScriptEngine.Common; | 31 | using OpenSim.Region.Environment.Interfaces; |
33 | using OpenSim.Region.ScriptEngine.Common.ScriptEngineBase; | 32 | using OpenSim.Region.ScriptEngine.Common.ScriptEngineBase; |
34 | using integer = System.Int32; | 33 | using integer = System.Int32; |
35 | using key = System.String; | 34 | using key = System.String; |
36 | using vector = OpenSim.Region.ScriptEngine.Common.LSL_Types.Vector3; | 35 | using vector = ScriptEngine.Common.LSL_Types.Vector3; |
37 | using rotation = OpenSim.Region.ScriptEngine.Common.LSL_Types.Quaternion; | 36 | using rotation = Quaternion; |
38 | 37 | ||
39 | namespace OpenSim.Region.ScriptEngine.Common | 38 | namespace OpenSim.Region.ScriptEngine.Common |
40 | { | 39 | { |
@@ -151,7 +150,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
151 | // They are only forwarders to LSL_BuiltIn_Commands.cs | 150 | // They are only forwarders to LSL_BuiltIn_Commands.cs |
152 | // | 151 | // |
153 | 152 | ||
154 | public OpenSim.Region.Environment.Interfaces.ICommander GetCommander(string name) | 153 | public ICommander GetCommander(string name) |
155 | { | 154 | { |
156 | return m_LSL_Functions.GetCommander(name); | 155 | return m_LSL_Functions.GetCommander(name); |
157 | } | 156 | } |
@@ -216,52 +215,52 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
216 | return m_LSL_Functions.llRound(f); | 215 | return m_LSL_Functions.llRound(f); |
217 | } | 216 | } |
218 | 217 | ||
219 | public double llVecMag(vector v) | 218 | public double llVecMag(LSL_Types.Vector3 v) |
220 | { | 219 | { |
221 | return m_LSL_Functions.llVecMag(v); | 220 | return m_LSL_Functions.llVecMag(v); |
222 | } | 221 | } |
223 | 222 | ||
224 | public vector llVecNorm(vector v) | 223 | public LSL_Types.Vector3 llVecNorm(LSL_Types.Vector3 v) |
225 | { | 224 | { |
226 | return m_LSL_Functions.llVecNorm(v); | 225 | return m_LSL_Functions.llVecNorm(v); |
227 | } | 226 | } |
228 | 227 | ||
229 | public double llVecDist(vector a, vector b) | 228 | public double llVecDist(LSL_Types.Vector3 a, LSL_Types.Vector3 b) |
230 | { | 229 | { |
231 | return m_LSL_Functions.llVecDist(a, b); | 230 | return m_LSL_Functions.llVecDist(a, b); |
232 | } | 231 | } |
233 | 232 | ||
234 | public vector llRot2Euler(rotation r) | 233 | public LSL_Types.Vector3 llRot2Euler(LSL_Types.Quaternion r) |
235 | { | 234 | { |
236 | return m_LSL_Functions.llRot2Euler(r); | 235 | return m_LSL_Functions.llRot2Euler(r); |
237 | } | 236 | } |
238 | 237 | ||
239 | public rotation llEuler2Rot(vector v) | 238 | public LSL_Types.Quaternion llEuler2Rot(LSL_Types.Vector3 v) |
240 | { | 239 | { |
241 | return m_LSL_Functions.llEuler2Rot(v); | 240 | return m_LSL_Functions.llEuler2Rot(v); |
242 | } | 241 | } |
243 | 242 | ||
244 | public rotation llAxes2Rot(vector fwd, vector left, vector up) | 243 | public LSL_Types.Quaternion llAxes2Rot(LSL_Types.Vector3 fwd, LSL_Types.Vector3 left, LSL_Types.Vector3 up) |
245 | { | 244 | { |
246 | return m_LSL_Functions.llAxes2Rot(fwd, left, up); | 245 | return m_LSL_Functions.llAxes2Rot(fwd, left, up); |
247 | } | 246 | } |
248 | 247 | ||
249 | public vector llRot2Fwd(rotation r) | 248 | public LSL_Types.Vector3 llRot2Fwd(LSL_Types.Quaternion r) |
250 | { | 249 | { |
251 | return m_LSL_Functions.llRot2Fwd(r); | 250 | return m_LSL_Functions.llRot2Fwd(r); |
252 | } | 251 | } |
253 | 252 | ||
254 | public vector llRot2Left(rotation r) | 253 | public LSL_Types.Vector3 llRot2Left(LSL_Types.Quaternion r) |
255 | { | 254 | { |
256 | return m_LSL_Functions.llRot2Left(r); | 255 | return m_LSL_Functions.llRot2Left(r); |
257 | } | 256 | } |
258 | 257 | ||
259 | public vector llRot2Up(rotation r) | 258 | public LSL_Types.Vector3 llRot2Up(LSL_Types.Quaternion r) |
260 | { | 259 | { |
261 | return m_LSL_Functions.llRot2Up(r); | 260 | return m_LSL_Functions.llRot2Up(r); |
262 | } | 261 | } |
263 | 262 | ||
264 | public rotation llRotBetween(vector start, vector end) | 263 | public LSL_Types.Quaternion llRotBetween(LSL_Types.Vector3 start, LSL_Types.Vector3 end) |
265 | { | 264 | { |
266 | return m_LSL_Functions.llRotBetween(start, end); | 265 | return m_LSL_Functions.llRotBetween(start, end); |
267 | } | 266 | } |
@@ -334,22 +333,22 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
334 | return m_LSL_Functions.llDetectedType(number); | 333 | return m_LSL_Functions.llDetectedType(number); |
335 | } | 334 | } |
336 | 335 | ||
337 | public vector llDetectedPos(int number) | 336 | public LSL_Types.Vector3 llDetectedPos(int number) |
338 | { | 337 | { |
339 | return m_LSL_Functions.llDetectedPos(number); | 338 | return m_LSL_Functions.llDetectedPos(number); |
340 | } | 339 | } |
341 | 340 | ||
342 | public vector llDetectedVel(int number) | 341 | public LSL_Types.Vector3 llDetectedVel(int number) |
343 | { | 342 | { |
344 | return m_LSL_Functions.llDetectedVel(number); | 343 | return m_LSL_Functions.llDetectedVel(number); |
345 | } | 344 | } |
346 | 345 | ||
347 | public vector llDetectedGrab(int number) | 346 | public LSL_Types.Vector3 llDetectedGrab(int number) |
348 | { | 347 | { |
349 | return m_LSL_Functions.llDetectedGrab(number); | 348 | return m_LSL_Functions.llDetectedGrab(number); |
350 | } | 349 | } |
351 | 350 | ||
352 | public rotation llDetectedRot(int number) | 351 | public LSL_Types.Quaternion llDetectedRot(int number) |
353 | { | 352 | { |
354 | return m_LSL_Functions.llDetectedRot(number); | 353 | return m_LSL_Functions.llDetectedRot(number); |
355 | } | 354 | } |
@@ -372,17 +371,17 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
372 | m_LSL_Functions.llDie(); | 371 | m_LSL_Functions.llDie(); |
373 | } | 372 | } |
374 | 373 | ||
375 | public double llGround(vector offset) | 374 | public double llGround(LSL_Types.Vector3 offset) |
376 | { | 375 | { |
377 | return m_LSL_Functions.llGround(offset); | 376 | return m_LSL_Functions.llGround(offset); |
378 | } | 377 | } |
379 | 378 | ||
380 | public double llCloud(vector offset) | 379 | public double llCloud(LSL_Types.Vector3 offset) |
381 | { | 380 | { |
382 | return m_LSL_Functions.llCloud(offset); | 381 | return m_LSL_Functions.llCloud(offset); |
383 | } | 382 | } |
384 | 383 | ||
385 | public vector llWind(vector offset) | 384 | public LSL_Types.Vector3 llWind(LSL_Types.Vector3 offset) |
386 | { | 385 | { |
387 | return m_LSL_Functions.llWind(offset); | 386 | return m_LSL_Functions.llWind(offset); |
388 | } | 387 | } |
@@ -397,17 +396,17 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
397 | return m_LSL_Functions.llGetStatus(status); | 396 | return m_LSL_Functions.llGetStatus(status); |
398 | } | 397 | } |
399 | 398 | ||
400 | public void llSetScale(vector scale) | 399 | public void llSetScale(LSL_Types.Vector3 scale) |
401 | { | 400 | { |
402 | m_LSL_Functions.llSetScale(scale); | 401 | m_LSL_Functions.llSetScale(scale); |
403 | } | 402 | } |
404 | 403 | ||
405 | public vector llGetScale() | 404 | public LSL_Types.Vector3 llGetScale() |
406 | { | 405 | { |
407 | return m_LSL_Functions.llGetScale(); | 406 | return m_LSL_Functions.llGetScale(); |
408 | } | 407 | } |
409 | 408 | ||
410 | public void llSetColor(vector color, int face) | 409 | public void llSetColor(LSL_Types.Vector3 color, int face) |
411 | { | 410 | { |
412 | m_LSL_Functions.llSetColor(color, face); | 411 | m_LSL_Functions.llSetColor(color, face); |
413 | } | 412 | } |
@@ -422,7 +421,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
422 | m_LSL_Functions.llSetAlpha(alpha, face); | 421 | m_LSL_Functions.llSetAlpha(alpha, face); |
423 | } | 422 | } |
424 | 423 | ||
425 | public vector llGetColor(int face) | 424 | public LSL_Types.Vector3 llGetColor(int face) |
426 | { | 425 | { |
427 | return m_LSL_Functions.llGetColor(face); | 426 | return m_LSL_Functions.llGetColor(face); |
428 | } | 427 | } |
@@ -455,47 +454,47 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
455 | // | 454 | // |
456 | // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs | 455 | // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs |
457 | // | 456 | // |
458 | public void llSetPos(vector pos) | 457 | public void llSetPos(LSL_Types.Vector3 pos) |
459 | { | 458 | { |
460 | m_LSL_Functions.llSetPos(pos); | 459 | m_LSL_Functions.llSetPos(pos); |
461 | } | 460 | } |
462 | 461 | ||
463 | public vector llGetPos() | 462 | public LSL_Types.Vector3 llGetPos() |
464 | { | 463 | { |
465 | return m_LSL_Functions.llGetPos(); | 464 | return m_LSL_Functions.llGetPos(); |
466 | } | 465 | } |
467 | 466 | ||
468 | public vector llGetLocalPos() | 467 | public LSL_Types.Vector3 llGetLocalPos() |
469 | { | 468 | { |
470 | return m_LSL_Functions.llGetLocalPos(); | 469 | return m_LSL_Functions.llGetLocalPos(); |
471 | } | 470 | } |
472 | 471 | ||
473 | public void llSetRot(rotation rot) | 472 | public void llSetRot(LSL_Types.Quaternion rot) |
474 | { | 473 | { |
475 | m_LSL_Functions.llSetRot(rot); | 474 | m_LSL_Functions.llSetRot(rot); |
476 | } | 475 | } |
477 | 476 | ||
478 | public rotation llGetRot() | 477 | public LSL_Types.Quaternion llGetRot() |
479 | { | 478 | { |
480 | return m_LSL_Functions.llGetRot(); | 479 | return m_LSL_Functions.llGetRot(); |
481 | } | 480 | } |
482 | 481 | ||
483 | public rotation llGetLocalRot() | 482 | public LSL_Types.Quaternion llGetLocalRot() |
484 | { | 483 | { |
485 | return m_LSL_Functions.llGetLocalRot(); | 484 | return m_LSL_Functions.llGetLocalRot(); |
486 | } | 485 | } |
487 | 486 | ||
488 | public void llSetForce(vector force, int local) | 487 | public void llSetForce(LSL_Types.Vector3 force, int local) |
489 | { | 488 | { |
490 | m_LSL_Functions.llSetForce(force, local); | 489 | m_LSL_Functions.llSetForce(force, local); |
491 | } | 490 | } |
492 | 491 | ||
493 | public vector llGetForce() | 492 | public LSL_Types.Vector3 llGetForce() |
494 | { | 493 | { |
495 | return m_LSL_Functions.llGetForce(); | 494 | return m_LSL_Functions.llGetForce(); |
496 | } | 495 | } |
497 | 496 | ||
498 | public int llTarget(vector position, double range) | 497 | public int llTarget(LSL_Types.Vector3 position, double range) |
499 | { | 498 | { |
500 | return m_LSL_Functions.llTarget(position, range); | 499 | return m_LSL_Functions.llTarget(position, range); |
501 | } | 500 | } |
@@ -505,7 +504,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
505 | m_LSL_Functions.llTargetRemove(number); | 504 | m_LSL_Functions.llTargetRemove(number); |
506 | } | 505 | } |
507 | 506 | ||
508 | public int llRotTarget(rotation rot, double error) | 507 | public int llRotTarget(LSL_Types.Quaternion rot, double error) |
509 | { | 508 | { |
510 | return m_LSL_Functions.llRotTarget(rot, error); | 509 | return m_LSL_Functions.llRotTarget(rot, error); |
511 | } | 510 | } |
@@ -515,7 +514,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
515 | m_LSL_Functions.llRotTargetRemove(number); | 514 | m_LSL_Functions.llRotTargetRemove(number); |
516 | } | 515 | } |
517 | 516 | ||
518 | public void llMoveToTarget(vector target, double tau) | 517 | public void llMoveToTarget(LSL_Types.Vector3 target, double tau) |
519 | { | 518 | { |
520 | m_LSL_Functions.llMoveToTarget(target, tau); | 519 | m_LSL_Functions.llMoveToTarget(target, tau); |
521 | } | 520 | } |
@@ -525,7 +524,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
525 | m_LSL_Functions.llStopMoveToTarget(); | 524 | m_LSL_Functions.llStopMoveToTarget(); |
526 | } | 525 | } |
527 | 526 | ||
528 | public void llApplyImpulse(vector force, int local) | 527 | public void llApplyImpulse(LSL_Types.Vector3 force, int local) |
529 | { | 528 | { |
530 | m_LSL_Functions.llApplyImpulse(force, local); | 529 | m_LSL_Functions.llApplyImpulse(force, local); |
531 | } | 530 | } |
@@ -533,37 +532,37 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
533 | // | 532 | // |
534 | // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs | 533 | // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs |
535 | // | 534 | // |
536 | public void llApplyRotationalImpulse(vector force, int local) | 535 | public void llApplyRotationalImpulse(LSL_Types.Vector3 force, int local) |
537 | { | 536 | { |
538 | m_LSL_Functions.llApplyRotationalImpulse(force, local); | 537 | m_LSL_Functions.llApplyRotationalImpulse(force, local); |
539 | } | 538 | } |
540 | 539 | ||
541 | public void llSetTorque(vector torque, int local) | 540 | public void llSetTorque(LSL_Types.Vector3 torque, int local) |
542 | { | 541 | { |
543 | m_LSL_Functions.llSetTorque(torque, local); | 542 | m_LSL_Functions.llSetTorque(torque, local); |
544 | } | 543 | } |
545 | 544 | ||
546 | public vector llGetTorque() | 545 | public LSL_Types.Vector3 llGetTorque() |
547 | { | 546 | { |
548 | return m_LSL_Functions.llGetTorque(); | 547 | return m_LSL_Functions.llGetTorque(); |
549 | } | 548 | } |
550 | 549 | ||
551 | public void llSetForceAndTorque(vector force, vector torque, int local) | 550 | public void llSetForceAndTorque(LSL_Types.Vector3 force, LSL_Types.Vector3 torque, int local) |
552 | { | 551 | { |
553 | m_LSL_Functions.llSetForceAndTorque(force, torque, local); | 552 | m_LSL_Functions.llSetForceAndTorque(force, torque, local); |
554 | } | 553 | } |
555 | 554 | ||
556 | public vector llGetVel() | 555 | public LSL_Types.Vector3 llGetVel() |
557 | { | 556 | { |
558 | return m_LSL_Functions.llGetVel(); | 557 | return m_LSL_Functions.llGetVel(); |
559 | } | 558 | } |
560 | 559 | ||
561 | public vector llGetAccel() | 560 | public LSL_Types.Vector3 llGetAccel() |
562 | { | 561 | { |
563 | return m_LSL_Functions.llGetAccel(); | 562 | return m_LSL_Functions.llGetAccel(); |
564 | } | 563 | } |
565 | 564 | ||
566 | public vector llGetOmega() | 565 | public LSL_Types.Vector3 llGetOmega() |
567 | { | 566 | { |
568 | return m_LSL_Functions.llGetOmega(); | 567 | return m_LSL_Functions.llGetOmega(); |
569 | } | 568 | } |
@@ -691,12 +690,12 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
691 | m_LSL_Functions.llMakeFire(); | 690 | m_LSL_Functions.llMakeFire(); |
692 | } | 691 | } |
693 | 692 | ||
694 | public void llRezObject(string inventory, vector pos, rotation rot, int param) | 693 | public void llRezObject(string inventory, LSL_Types.Vector3 pos, LSL_Types.Quaternion rot, int param) |
695 | { | 694 | { |
696 | m_LSL_Functions.llRezObject(inventory, pos, rot, param); | 695 | m_LSL_Functions.llRezObject(inventory, pos, rot, param); |
697 | } | 696 | } |
698 | 697 | ||
699 | public void llLookAt(vector target, double strength, double damping) | 698 | public void llLookAt(LSL_Types.Vector3 target, double strength, double damping) |
700 | { | 699 | { |
701 | m_LSL_Functions.llLookAt(target, strength, damping); | 700 | m_LSL_Functions.llLookAt(target, strength, damping); |
702 | } | 701 | } |
@@ -809,7 +808,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
809 | m_LSL_Functions.llSoundPreload(); | 808 | m_LSL_Functions.llSoundPreload(); |
810 | } | 809 | } |
811 | 810 | ||
812 | public void llRotLookAt(rotation target, double strength, double damping) | 811 | public void llRotLookAt(LSL_Types.Quaternion target, double strength, double damping) |
813 | { | 812 | { |
814 | m_LSL_Functions.llRotLookAt(target, strength, damping); | 813 | m_LSL_Functions.llRotLookAt(target, strength, damping); |
815 | } | 814 | } |
@@ -842,7 +841,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
842 | m_LSL_Functions.llStopPointAt(); | 841 | m_LSL_Functions.llStopPointAt(); |
843 | } | 842 | } |
844 | 843 | ||
845 | public void llTargetOmega(vector axis, double spinrate, double gain) | 844 | public void llTargetOmega(LSL_Types.Vector3 axis, double spinrate, double gain) |
846 | { | 845 | { |
847 | m_LSL_Functions.llTargetOmega(axis, spinrate, gain); | 846 | m_LSL_Functions.llTargetOmega(axis, spinrate, gain); |
848 | } | 847 | } |
@@ -852,7 +851,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
852 | return m_LSL_Functions.llGetStartParameter(); | 851 | return m_LSL_Functions.llGetStartParameter(); |
853 | } | 852 | } |
854 | 853 | ||
855 | public void llGodLikeRezObject(string inventory, vector pos) | 854 | public void llGodLikeRezObject(string inventory, LSL_Types.Vector3 pos) |
856 | { | 855 | { |
857 | m_LSL_Functions.llGodLikeRezObject(inventory, pos); | 856 | m_LSL_Functions.llGodLikeRezObject(inventory, pos); |
858 | } | 857 | } |
@@ -877,7 +876,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
877 | return m_LSL_Functions.llGetLinkNumber(); | 876 | return m_LSL_Functions.llGetLinkNumber(); |
878 | } | 877 | } |
879 | 878 | ||
880 | public void llSetLinkColor(int linknumber, vector color, int face) | 879 | public void llSetLinkColor(int linknumber, LSL_Types.Vector3 color, int face) |
881 | { | 880 | { |
882 | m_LSL_Functions.llSetLinkColor(linknumber, color, face); | 881 | m_LSL_Functions.llSetLinkColor(linknumber, color, face); |
883 | } | 882 | } |
@@ -940,12 +939,12 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
940 | m_LSL_Functions.llRemoveInventory(item); | 939 | m_LSL_Functions.llRemoveInventory(item); |
941 | } | 940 | } |
942 | 941 | ||
943 | public void llSetText(string text, vector color, double alpha) | 942 | public void llSetText(string text, LSL_Types.Vector3 color, double alpha) |
944 | { | 943 | { |
945 | m_LSL_Functions.llSetText(text, color, alpha); | 944 | m_LSL_Functions.llSetText(text, color, alpha); |
946 | } | 945 | } |
947 | 946 | ||
948 | public double llWater(vector offset) | 947 | public double llWater(LSL_Types.Vector3 offset) |
949 | { | 948 | { |
950 | return m_LSL_Functions.llWater(offset); | 949 | return m_LSL_Functions.llWater(offset); |
951 | } | 950 | } |
@@ -1005,7 +1004,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
1005 | m_LSL_Functions.llMessageLinked(linknum, num, str, id); | 1004 | m_LSL_Functions.llMessageLinked(linknum, num, str, id); |
1006 | } | 1005 | } |
1007 | 1006 | ||
1008 | public void llPushObject(string target, vector impulse, vector ang_impulse, int local) | 1007 | public void llPushObject(string target, LSL_Types.Vector3 impulse, LSL_Types.Vector3 ang_impulse, int local) |
1009 | { | 1008 | { |
1010 | m_LSL_Functions.llPushObject(target, impulse, ang_impulse, local); | 1009 | m_LSL_Functions.llPushObject(target, impulse, ang_impulse, local); |
1011 | } | 1010 | } |
@@ -1028,12 +1027,12 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
1028 | // | 1027 | // |
1029 | // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs | 1028 | // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs |
1030 | // | 1029 | // |
1031 | public rotation llAxisAngle2Rot(vector axis, double angle) | 1030 | public LSL_Types.Quaternion llAxisAngle2Rot(LSL_Types.Vector3 axis, double angle) |
1032 | { | 1031 | { |
1033 | return m_LSL_Functions.llAxisAngle2Rot(axis, angle); | 1032 | return m_LSL_Functions.llAxisAngle2Rot(axis, angle); |
1034 | } | 1033 | } |
1035 | 1034 | ||
1036 | public vector llRot2Axis(rotation rot) | 1035 | public LSL_Types.Vector3 llRot2Axis(LSL_Types.Quaternion rot) |
1037 | { | 1036 | { |
1038 | return m_LSL_Functions.llRot2Axis(rot); | 1037 | return m_LSL_Functions.llRot2Axis(rot); |
1039 | } | 1038 | } |
@@ -1053,7 +1052,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
1053 | return m_LSL_Functions.llAsin(val); | 1052 | return m_LSL_Functions.llAsin(val); |
1054 | } | 1053 | } |
1055 | 1054 | ||
1056 | public double llAngleBetween(rotation a, rotation b) | 1055 | public double llAngleBetween(LSL_Types.Quaternion a, LSL_Types.Quaternion b) |
1057 | { | 1056 | { |
1058 | return m_LSL_Functions.llAngleBetween(a, b); | 1057 | return m_LSL_Functions.llAngleBetween(a, b); |
1059 | } | 1058 | } |
@@ -1068,17 +1067,17 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
1068 | m_LSL_Functions.llAllowInventoryDrop(add); | 1067 | m_LSL_Functions.llAllowInventoryDrop(add); |
1069 | } | 1068 | } |
1070 | 1069 | ||
1071 | public vector llGetSunDirection() | 1070 | public LSL_Types.Vector3 llGetSunDirection() |
1072 | { | 1071 | { |
1073 | return m_LSL_Functions.llGetSunDirection(); | 1072 | return m_LSL_Functions.llGetSunDirection(); |
1074 | } | 1073 | } |
1075 | 1074 | ||
1076 | public vector llGetTextureOffset(int face) | 1075 | public LSL_Types.Vector3 llGetTextureOffset(int face) |
1077 | { | 1076 | { |
1078 | return m_LSL_Functions.llGetTextureOffset(face); | 1077 | return m_LSL_Functions.llGetTextureOffset(face); |
1079 | } | 1078 | } |
1080 | 1079 | ||
1081 | public vector llGetTextureScale(int side) | 1080 | public LSL_Types.Vector3 llGetTextureScale(int side) |
1082 | { | 1081 | { |
1083 | return m_LSL_Functions.llGetTextureScale(side); | 1082 | return m_LSL_Functions.llGetTextureScale(side); |
1084 | } | 1083 | } |
@@ -1098,7 +1097,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
1098 | return m_LSL_Functions.llGetOwnerKey(id); | 1097 | return m_LSL_Functions.llGetOwnerKey(id); |
1099 | } | 1098 | } |
1100 | 1099 | ||
1101 | public vector llGetCenterOfMass() | 1100 | public LSL_Types.Vector3 llGetCenterOfMass() |
1102 | { | 1101 | { |
1103 | return m_LSL_Functions.llGetCenterOfMass(); | 1102 | return m_LSL_Functions.llGetCenterOfMass(); |
1104 | } | 1103 | } |
@@ -1136,12 +1135,12 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
1136 | return m_LSL_Functions.llList2Key(src, index); | 1135 | return m_LSL_Functions.llList2Key(src, index); |
1137 | } | 1136 | } |
1138 | 1137 | ||
1139 | public vector llList2Vector(LSL_Types.list src, int index) | 1138 | public LSL_Types.Vector3 llList2Vector(LSL_Types.list src, int index) |
1140 | { | 1139 | { |
1141 | return m_LSL_Functions.llList2Vector(src, index); | 1140 | return m_LSL_Functions.llList2Vector(src, index); |
1142 | } | 1141 | } |
1143 | 1142 | ||
1144 | public rotation llList2Rot(LSL_Types.list src, int index) | 1143 | public LSL_Types.Quaternion llList2Rot(LSL_Types.list src, int index) |
1145 | { | 1144 | { |
1146 | return m_LSL_Functions.llList2Rot(src, index); | 1145 | return m_LSL_Functions.llList2Rot(src, index); |
1147 | } | 1146 | } |
@@ -1181,7 +1180,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
1181 | return m_LSL_Functions.llList2ListStrided(src, start, end, stride); | 1180 | return m_LSL_Functions.llList2ListStrided(src, start, end, stride); |
1182 | } | 1181 | } |
1183 | 1182 | ||
1184 | public vector llGetRegionCorner() | 1183 | public LSL_Types.Vector3 llGetRegionCorner() |
1185 | { | 1184 | { |
1186 | return m_LSL_Functions.llGetRegionCorner(); | 1185 | return m_LSL_Functions.llGetRegionCorner(); |
1187 | } | 1186 | } |
@@ -1211,7 +1210,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
1211 | return m_LSL_Functions.llGetDate(); | 1210 | return m_LSL_Functions.llGetDate(); |
1212 | } | 1211 | } |
1213 | 1212 | ||
1214 | public int llEdgeOfWorld(vector pos, vector dir) | 1213 | public int llEdgeOfWorld(LSL_Types.Vector3 pos, LSL_Types.Vector3 dir) |
1215 | { | 1214 | { |
1216 | return m_LSL_Functions.llEdgeOfWorld(pos, dir); | 1215 | return m_LSL_Functions.llEdgeOfWorld(pos, dir); |
1217 | } | 1216 | } |
@@ -1249,7 +1248,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
1249 | m_LSL_Functions.llSetTextureAnim(mode, face, sizex, sizey, start, length, rate); | 1248 | m_LSL_Functions.llSetTextureAnim(mode, face, sizex, sizey, start, length, rate); |
1250 | } | 1249 | } |
1251 | 1250 | ||
1252 | public void llTriggerSoundLimited(string sound, double volume, vector top_north_east, vector bottom_south_west) | 1251 | public void llTriggerSoundLimited(string sound, double volume, LSL_Types.Vector3 top_north_east, LSL_Types.Vector3 bottom_south_west) |
1253 | { | 1252 | { |
1254 | m_LSL_Functions.llTriggerSoundLimited(sound, volume, top_north_east, bottom_south_west); | 1253 | m_LSL_Functions.llTriggerSoundLimited(sound, volume, top_north_east, bottom_south_west); |
1255 | } | 1254 | } |
@@ -1269,7 +1268,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
1269 | return m_LSL_Functions.llOverMyLand(id); | 1268 | return m_LSL_Functions.llOverMyLand(id); |
1270 | } | 1269 | } |
1271 | 1270 | ||
1272 | public string llGetLandOwnerAt(vector pos) | 1271 | public string llGetLandOwnerAt(LSL_Types.Vector3 pos) |
1273 | { | 1272 | { |
1274 | return m_LSL_Functions.llGetLandOwnerAt(pos); | 1273 | return m_LSL_Functions.llGetLandOwnerAt(pos); |
1275 | } | 1274 | } |
@@ -1279,7 +1278,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
1279 | return m_LSL_Functions.llGetNotecardLine(name, line); | 1278 | return m_LSL_Functions.llGetNotecardLine(name, line); |
1280 | } | 1279 | } |
1281 | 1280 | ||
1282 | public vector llGetAgentSize(string id) | 1281 | public LSL_Types.Vector3 llGetAgentSize(string id) |
1283 | { | 1282 | { |
1284 | return m_LSL_Functions.llGetAgentSize(id); | 1283 | return m_LSL_Functions.llGetAgentSize(id); |
1285 | } | 1284 | } |
@@ -1294,17 +1293,17 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
1294 | m_LSL_Functions.llUnSit(id); | 1293 | m_LSL_Functions.llUnSit(id); |
1295 | } | 1294 | } |
1296 | 1295 | ||
1297 | public vector llGroundSlope(vector offset) | 1296 | public LSL_Types.Vector3 llGroundSlope(LSL_Types.Vector3 offset) |
1298 | { | 1297 | { |
1299 | return m_LSL_Functions.llGroundSlope(offset); | 1298 | return m_LSL_Functions.llGroundSlope(offset); |
1300 | } | 1299 | } |
1301 | 1300 | ||
1302 | public vector llGroundNormal(vector offset) | 1301 | public LSL_Types.Vector3 llGroundNormal(LSL_Types.Vector3 offset) |
1303 | { | 1302 | { |
1304 | return m_LSL_Functions.llGroundNormal(offset); | 1303 | return m_LSL_Functions.llGroundNormal(offset); |
1305 | } | 1304 | } |
1306 | 1305 | ||
1307 | public vector llGroundContour(vector offset) | 1306 | public LSL_Types.Vector3 llGroundContour(LSL_Types.Vector3 offset) |
1308 | { | 1307 | { |
1309 | return m_LSL_Functions.llGroundContour(offset); | 1308 | return m_LSL_Functions.llGroundContour(offset); |
1310 | } | 1309 | } |
@@ -1362,12 +1361,12 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
1362 | m_LSL_Functions.llSetVehicledoubleParam(param, value); | 1361 | m_LSL_Functions.llSetVehicledoubleParam(param, value); |
1363 | } | 1362 | } |
1364 | 1363 | ||
1365 | public void llSetVehicleVectorParam(int param, vector vec) | 1364 | public void llSetVehicleVectorParam(int param, LSL_Types.Vector3 vec) |
1366 | { | 1365 | { |
1367 | m_LSL_Functions.llSetVehicleVectorParam(param, vec); | 1366 | m_LSL_Functions.llSetVehicleVectorParam(param, vec); |
1368 | } | 1367 | } |
1369 | 1368 | ||
1370 | public void llSetVehicleRotationParam(int param, rotation rot) | 1369 | public void llSetVehicleRotationParam(int param, LSL_Types.Quaternion rot) |
1371 | { | 1370 | { |
1372 | m_LSL_Functions.llSetVehicleRotationParam(param, rot); | 1371 | m_LSL_Functions.llSetVehicleRotationParam(param, rot); |
1373 | } | 1372 | } |
@@ -1382,7 +1381,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
1382 | m_LSL_Functions.llRemoveVehicleFlags(flags); | 1381 | m_LSL_Functions.llRemoveVehicleFlags(flags); |
1383 | } | 1382 | } |
1384 | 1383 | ||
1385 | public void llSitTarget(vector offset, rotation rot) | 1384 | public void llSitTarget(LSL_Types.Vector3 offset, LSL_Types.Quaternion rot) |
1386 | { | 1385 | { |
1387 | m_LSL_Functions.llSitTarget(offset, rot); | 1386 | m_LSL_Functions.llSitTarget(offset, rot); |
1388 | } | 1387 | } |
@@ -1407,12 +1406,12 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
1407 | m_LSL_Functions.llSetSitText(text); | 1406 | m_LSL_Functions.llSetSitText(text); |
1408 | } | 1407 | } |
1409 | 1408 | ||
1410 | public void llSetCameraEyeOffset(vector offset) | 1409 | public void llSetCameraEyeOffset(LSL_Types.Vector3 offset) |
1411 | { | 1410 | { |
1412 | m_LSL_Functions.llSetCameraEyeOffset(offset); | 1411 | m_LSL_Functions.llSetCameraEyeOffset(offset); |
1413 | } | 1412 | } |
1414 | 1413 | ||
1415 | public void llSetCameraAtOffset(vector offset) | 1414 | public void llSetCameraAtOffset(LSL_Types.Vector3 offset) |
1416 | { | 1415 | { |
1417 | m_LSL_Functions.llSetCameraAtOffset(offset); | 1416 | m_LSL_Functions.llSetCameraAtOffset(offset); |
1418 | } | 1417 | } |
@@ -1422,7 +1421,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
1422 | return m_LSL_Functions.llDumpList2String(src, seperator); | 1421 | return m_LSL_Functions.llDumpList2String(src, seperator); |
1423 | } | 1422 | } |
1424 | 1423 | ||
1425 | public void llScriptDanger(vector pos) | 1424 | public void llScriptDanger(LSL_Types.Vector3 pos) |
1426 | { | 1425 | { |
1427 | m_LSL_Functions.llScriptDanger(pos); | 1426 | m_LSL_Functions.llScriptDanger(pos); |
1428 | } | 1427 | } |
@@ -1539,12 +1538,12 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
1539 | m_LSL_Functions.llSetParcelMusicURL(url); | 1538 | m_LSL_Functions.llSetParcelMusicURL(url); |
1540 | } | 1539 | } |
1541 | 1540 | ||
1542 | public vector llGetRootPosition() | 1541 | public LSL_Types.Vector3 llGetRootPosition() |
1543 | { | 1542 | { |
1544 | return m_LSL_Functions.llGetRootPosition(); | 1543 | return m_LSL_Functions.llGetRootPosition(); |
1545 | } | 1544 | } |
1546 | 1545 | ||
1547 | public rotation llGetRootRotation() | 1546 | public LSL_Types.Quaternion llGetRootRotation() |
1548 | { | 1547 | { |
1549 | return m_LSL_Functions.llGetRootRotation(); | 1548 | return m_LSL_Functions.llGetRootRotation(); |
1550 | } | 1549 | } |
@@ -1589,7 +1588,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
1589 | return m_LSL_Functions.llGetBoundingBox(obj); | 1588 | return m_LSL_Functions.llGetBoundingBox(obj); |
1590 | } | 1589 | } |
1591 | 1590 | ||
1592 | public vector llGetGeometricCenter() | 1591 | public LSL_Types.Vector3 llGetGeometricCenter() |
1593 | { | 1592 | { |
1594 | return m_LSL_Functions.llGetGeometricCenter(); | 1593 | return m_LSL_Functions.llGetGeometricCenter(); |
1595 | } | 1594 | } |
@@ -1622,7 +1621,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
1622 | return m_LSL_Functions.llGetSimulatorHostname(); | 1621 | return m_LSL_Functions.llGetSimulatorHostname(); |
1623 | } | 1622 | } |
1624 | 1623 | ||
1625 | public void llSetLocalRot(rotation rot) | 1624 | public void llSetLocalRot(LSL_Types.Quaternion rot) |
1626 | { | 1625 | { |
1627 | m_LSL_Functions.llSetLocalRot(rot); | 1626 | m_LSL_Functions.llSetLocalRot(rot); |
1628 | } | 1627 | } |
@@ -1632,7 +1631,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
1632 | return m_LSL_Functions.llParseStringKeepNulls(src, seperators, spacers); | 1631 | return m_LSL_Functions.llParseStringKeepNulls(src, seperators, spacers); |
1633 | } | 1632 | } |
1634 | 1633 | ||
1635 | public void llRezAtRoot(string inventory, vector position, vector velocity, rotation rot, int param) | 1634 | public void llRezAtRoot(string inventory, LSL_Types.Vector3 position, LSL_Types.Vector3 velocity, LSL_Types.Quaternion rot, int param) |
1636 | { | 1635 | { |
1637 | m_LSL_Functions.llRezAtRoot(inventory, position, velocity, rot, param); | 1636 | m_LSL_Functions.llRezAtRoot(inventory, position, velocity, rot, param); |
1638 | } | 1637 | } |
@@ -1720,12 +1719,12 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
1720 | m_LSL_Functions.llSetPayPrice(price, quick_pay_buttons); | 1719 | m_LSL_Functions.llSetPayPrice(price, quick_pay_buttons); |
1721 | } | 1720 | } |
1722 | 1721 | ||
1723 | public vector llGetCameraPos() | 1722 | public LSL_Types.Vector3 llGetCameraPos() |
1724 | { | 1723 | { |
1725 | return m_LSL_Functions.llGetCameraPos(); | 1724 | return m_LSL_Functions.llGetCameraPos(); |
1726 | } | 1725 | } |
1727 | 1726 | ||
1728 | public rotation llGetCameraRot() | 1727 | public LSL_Types.Quaternion llGetCameraRot() |
1729 | { | 1728 | { |
1730 | return m_LSL_Functions.llGetCameraRot(); | 1729 | return m_LSL_Functions.llGetCameraRot(); |
1731 | } | 1730 | } |
@@ -1750,7 +1749,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
1750 | return m_LSL_Functions.llUnescapeURL(url); | 1749 | return m_LSL_Functions.llUnescapeURL(url); |
1751 | } | 1750 | } |
1752 | 1751 | ||
1753 | public void llMapDestination(string simname, vector pos, vector look_at) | 1752 | public void llMapDestination(string simname, LSL_Types.Vector3 pos, LSL_Types.Vector3 look_at) |
1754 | { | 1753 | { |
1755 | m_LSL_Functions.llMapDestination(simname, pos, look_at); | 1754 | m_LSL_Functions.llMapDestination(simname, pos, look_at); |
1756 | } | 1755 | } |
@@ -1790,7 +1789,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
1790 | return m_LSL_Functions.llGetUnixTime(); | 1789 | return m_LSL_Functions.llGetUnixTime(); |
1791 | } | 1790 | } |
1792 | 1791 | ||
1793 | public int llGetParcelFlags(vector pos) | 1792 | public int llGetParcelFlags(LSL_Types.Vector3 pos) |
1794 | { | 1793 | { |
1795 | return m_LSL_Functions.llGetParcelFlags(pos); | 1794 | return m_LSL_Functions.llGetParcelFlags(pos); |
1796 | } | 1795 | } |
@@ -1820,12 +1819,12 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
1820 | m_LSL_Functions.llResetLandPassList(); | 1819 | m_LSL_Functions.llResetLandPassList(); |
1821 | } | 1820 | } |
1822 | 1821 | ||
1823 | public int llGetParcelPrimCount(vector pos, int category, int sim_wide) | 1822 | public int llGetParcelPrimCount(LSL_Types.Vector3 pos, int category, int sim_wide) |
1824 | { | 1823 | { |
1825 | return m_LSL_Functions.llGetParcelPrimCount(pos, category, sim_wide); | 1824 | return m_LSL_Functions.llGetParcelPrimCount(pos, category, sim_wide); |
1826 | } | 1825 | } |
1827 | 1826 | ||
1828 | public LSL_Types.list llGetParcelPrimOwners(vector pos) | 1827 | public LSL_Types.list llGetParcelPrimOwners(LSL_Types.Vector3 pos) |
1829 | { | 1828 | { |
1830 | return m_LSL_Functions.llGetParcelPrimOwners(pos); | 1829 | return m_LSL_Functions.llGetParcelPrimOwners(pos); |
1831 | } | 1830 | } |
@@ -1838,12 +1837,12 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
1838 | // | 1837 | // |
1839 | // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs | 1838 | // DO NOT MODIFY HERE: MODIFY IN LSL_BuiltIn_Commands.cs |
1840 | // | 1839 | // |
1841 | public int llGetParcelMaxPrims(vector pos, int sim_wide) | 1840 | public int llGetParcelMaxPrims(LSL_Types.Vector3 pos, int sim_wide) |
1842 | { | 1841 | { |
1843 | return m_LSL_Functions.llGetParcelMaxPrims(pos, sim_wide); | 1842 | return m_LSL_Functions.llGetParcelMaxPrims(pos, sim_wide); |
1844 | } | 1843 | } |
1845 | 1844 | ||
1846 | public LSL_Types.list llGetParcelDetails(vector pos, LSL_Types.list param) | 1845 | public LSL_Types.list llGetParcelDetails(LSL_Types.Vector3 pos, LSL_Types.list param) |
1847 | { | 1846 | { |
1848 | return m_LSL_Functions.llGetParcelDetails(pos, param); | 1847 | return m_LSL_Functions.llGetParcelDetails(pos, param); |
1849 | } | 1848 | } |
@@ -2381,7 +2380,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
2381 | public const int OBJECT_CREATOR = 8; | 2380 | public const int OBJECT_CREATOR = 8; |
2382 | 2381 | ||
2383 | // Can not be public const? | 2382 | // Can not be public const? |
2384 | public vector ZERO_VECTOR = new vector(0.0, 0.0, 0.0); | 2383 | public LSL_Types.Vector3 ZERO_VECTOR = new LSL_Types.Vector3(0.0, 0.0, 0.0); |
2385 | public rotation ZERO_ROTATION = new rotation(0.0, 0, 0.0, 1.0); | 2384 | public LSL_Types.Quaternion ZERO_ROTATION = new LSL_Types.Quaternion(0.0, 0, 0.0, 1.0); |
2386 | } | 2385 | } |
2387 | } | 2386 | } |
diff --git a/OpenSim/Region/ScriptEngine/Common/Executor.cs b/OpenSim/Region/ScriptEngine/Common/Executor.cs index 45f7355..8e0d6f1 100644 --- a/OpenSim/Region/ScriptEngine/Common/Executor.cs +++ b/OpenSim/Region/ScriptEngine/Common/Executor.cs | |||
@@ -28,7 +28,6 @@ | |||
28 | using System; | 28 | using System; |
29 | using System.Collections.Generic; | 29 | using System.Collections.Generic; |
30 | using System.Reflection; | 30 | using System.Reflection; |
31 | using System.Runtime.Remoting.Lifetime; | ||
32 | 31 | ||
33 | namespace OpenSim.Region.ScriptEngine.Common | 32 | namespace OpenSim.Region.ScriptEngine.Common |
34 | { | 33 | { |
diff --git a/OpenSim/Region/ScriptEngine/Common/ExecutorBase.cs b/OpenSim/Region/ScriptEngine/Common/ExecutorBase.cs index 50eb56f..19fb487 100644 --- a/OpenSim/Region/ScriptEngine/Common/ExecutorBase.cs +++ b/OpenSim/Region/ScriptEngine/Common/ExecutorBase.cs | |||
@@ -26,9 +26,7 @@ | |||
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System; | 28 | using System; |
29 | using System.Collections.Generic; | ||
30 | using System.Runtime.Remoting.Lifetime; | 29 | using System.Runtime.Remoting.Lifetime; |
31 | using System.Text; | ||
32 | 30 | ||
33 | namespace OpenSim.Region.ScriptEngine.Common | 31 | namespace OpenSim.Region.ScriptEngine.Common |
34 | { | 32 | { |
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs index c00254d..04f8967 100644 --- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs +++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | |||
@@ -34,13 +34,12 @@ using System.Threading; | |||
34 | using Axiom.Math; | 34 | using Axiom.Math; |
35 | using libsecondlife; | 35 | using libsecondlife; |
36 | using OpenSim.Framework; | 36 | using OpenSim.Framework; |
37 | using OpenSim.Framework.Communications; | 37 | using OpenSim.Region.Environment; |
38 | using OpenSim.Region.Environment.Interfaces; | 38 | using OpenSim.Region.Environment.Interfaces; |
39 | using OpenSim.Region.Environment.Modules.LandManagement; | ||
39 | using OpenSim.Region.Environment.Scenes; | 40 | using OpenSim.Region.Environment.Scenes; |
40 | using OpenSim.Region.ScriptEngine.Common; | ||
41 | using OpenSim.Region.ScriptEngine.Common.ScriptEngineBase; | 41 | using OpenSim.Region.ScriptEngine.Common.ScriptEngineBase; |
42 | using OpenSim.Region.Environment; | 42 | |
43 | using OpenSim.Region.Environment.Modules.LandManagement; | ||
44 | //using OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL; | 43 | //using OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL; |
45 | 44 | ||
46 | namespace OpenSim.Region.ScriptEngine.Common | 45 | namespace OpenSim.Region.ScriptEngine.Common |
@@ -86,7 +85,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
86 | } | 85 | } |
87 | catch (AppDomainUnloadedException) | 86 | catch (AppDomainUnloadedException) |
88 | { | 87 | { |
89 | System.Console.WriteLine("[SCRIPT]: state change called when script was unloaded. Nothing to worry about, but noting the occurance"); | 88 | Console.WriteLine("[SCRIPT]: state change called when script was unloaded. Nothing to worry about, but noting the occurance"); |
90 | } | 89 | } |
91 | } | 90 | } |
92 | } | 91 | } |
@@ -1677,10 +1676,10 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
1677 | //m_pendingFriendRequests.Add(friendTransactionID, fromAgentID); | 1676 | //m_pendingFriendRequests.Add(friendTransactionID, fromAgentID); |
1678 | 1677 | ||
1679 | GridInstantMessage msg = new GridInstantMessage(); | 1678 | GridInstantMessage msg = new GridInstantMessage(); |
1680 | msg.fromAgentID = new System.Guid(m_host.UUID.ToString()); // fromAgentID.UUID; | 1679 | msg.fromAgentID = new Guid(m_host.UUID.ToString()); // fromAgentID.UUID; |
1681 | msg.fromAgentSession = new System.Guid(friendTransactionID.ToString());// fromAgentSession.UUID; | 1680 | msg.fromAgentSession = new Guid(friendTransactionID.ToString());// fromAgentSession.UUID; |
1682 | msg.toAgentID = new System.Guid(user); // toAgentID.UUID; | 1681 | msg.toAgentID = new Guid(user); // toAgentID.UUID; |
1683 | msg.imSessionID = new System.Guid(friendTransactionID.ToString()); // This is the item we're mucking with here | 1682 | msg.imSessionID = new Guid(friendTransactionID.ToString()); // This is the item we're mucking with here |
1684 | Console.WriteLine("[Scripting IM]: From:" + msg.fromAgentID.ToString() + " To: " + msg.toAgentID.ToString() + " Session:" + msg.imSessionID.ToString() + " Message:" + message); | 1683 | Console.WriteLine("[Scripting IM]: From:" + msg.fromAgentID.ToString() + " To: " + msg.toAgentID.ToString() + " Session:" + msg.imSessionID.ToString() + " Message:" + message); |
1685 | Console.WriteLine("[Scripting IM]: Filling Session: " + msg.imSessionID.ToString()); | 1684 | Console.WriteLine("[Scripting IM]: Filling Session: " + msg.imSessionID.ToString()); |
1686 | msg.timestamp = (uint)Util.UnixTimeSinceEpoch();// timestamp; | 1685 | msg.timestamp = (uint)Util.UnixTimeSinceEpoch();// timestamp; |
@@ -2654,7 +2653,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
2654 | { | 2653 | { |
2655 | return new LSL_Types.Vector3(0, 0, 0); | 2654 | return new LSL_Types.Vector3(0, 0, 0); |
2656 | } | 2655 | } |
2657 | if (src.Data[index].GetType() == typeof(OpenSim.Region.ScriptEngine.Common.LSL_Types.Vector3)) | 2656 | if (src.Data[index].GetType() == typeof(LSL_Types.Vector3)) |
2658 | { | 2657 | { |
2659 | return (LSL_Types.Vector3)src.Data[index]; | 2658 | return (LSL_Types.Vector3)src.Data[index]; |
2660 | } | 2659 | } |
@@ -2675,7 +2674,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
2675 | { | 2674 | { |
2676 | return new LSL_Types.Quaternion(0, 0, 0, 1); | 2675 | return new LSL_Types.Quaternion(0, 0, 0, 1); |
2677 | } | 2676 | } |
2678 | if (src.Data[index].GetType() == typeof(OpenSim.Region.ScriptEngine.Common.LSL_Types.Quaternion)) | 2677 | if (src.Data[index].GetType() == typeof(LSL_Types.Quaternion)) |
2679 | { | 2678 | { |
2680 | return (LSL_Types.Quaternion)src.Data[index]; | 2679 | return (LSL_Types.Quaternion)src.Data[index]; |
2681 | } | 2680 | } |
@@ -2713,11 +2712,11 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
2713 | return 0; | 2712 | return 0; |
2714 | } | 2713 | } |
2715 | 2714 | ||
2716 | if (src.Data[index] is System.Int32) | 2715 | if (src.Data[index] is Int32) |
2717 | return 1; | 2716 | return 1; |
2718 | if (src.Data[index] is System.Double) | 2717 | if (src.Data[index] is Double) |
2719 | return 2; | 2718 | return 2; |
2720 | if (src.Data[index] is System.String) | 2719 | if (src.Data[index] is String) |
2721 | { | 2720 | { |
2722 | LLUUID tuuid; | 2721 | LLUUID tuuid; |
2723 | if (LLUUID.TryParse(src.Data[index].ToString(), out tuuid)) | 2722 | if (LLUUID.TryParse(src.Data[index].ToString(), out tuuid)) |
@@ -2729,11 +2728,11 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
2729 | return 4; | 2728 | return 4; |
2730 | } | 2729 | } |
2731 | } | 2730 | } |
2732 | if (src.Data[index] is OpenSim.Region.ScriptEngine.Common.LSL_Types.Vector3) | 2731 | if (src.Data[index] is LSL_Types.Vector3) |
2733 | return 5; | 2732 | return 5; |
2734 | if (src.Data[index] is OpenSim.Region.ScriptEngine.Common.LSL_Types.Quaternion) | 2733 | if (src.Data[index] is LSL_Types.Quaternion) |
2735 | return 6; | 2734 | return 6; |
2736 | if (src.Data[index] is OpenSim.Region.ScriptEngine.Common.LSL_Types.list) | 2735 | if (src.Data[index] is LSL_Types.list) |
2737 | return 7; | 2736 | return 7; |
2738 | return 0; | 2737 | return 0; |
2739 | 2738 | ||
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands_Interface.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands_Interface.cs index 8d8e0bc..fa957bb 100644 --- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands_Interface.cs +++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands_Interface.cs | |||
@@ -25,7 +25,7 @@ | |||
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System.Collections.Generic; | 28 | using OpenSim.Region.Environment.Interfaces; |
29 | 29 | ||
30 | namespace OpenSim.Region.ScriptEngine.Common | 30 | namespace OpenSim.Region.ScriptEngine.Common |
31 | { | 31 | { |
@@ -35,7 +35,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
35 | 35 | ||
36 | string State { get; set; } | 36 | string State { get; set; } |
37 | 37 | ||
38 | OpenSim.Region.Environment.Interfaces.ICommander GetCommander(string name); | 38 | ICommander GetCommander(string name); |
39 | 39 | ||
40 | double llSin(double f); | 40 | double llSin(double f); |
41 | double llCos(double f); | 41 | double llCos(double f); |
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs b/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs index 55c13a4..7a8b4ca 100644 --- a/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs +++ b/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs | |||
@@ -26,8 +26,8 @@ | |||
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System; | 28 | using System; |
29 | using System.Text.RegularExpressions; | ||
30 | using System.Collections; | 29 | using System.Collections; |
30 | using System.Text.RegularExpressions; | ||
31 | 31 | ||
32 | namespace OpenSim.Region.ScriptEngine.Common | 32 | namespace OpenSim.Region.ScriptEngine.Common |
33 | { | 33 | { |
@@ -639,7 +639,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
639 | public double GeometricMean() | 639 | public double GeometricMean() |
640 | { | 640 | { |
641 | double ret = 1.0; | 641 | double ret = 1.0; |
642 | list nums = list.ToDoubleList(this); | 642 | list nums = ToDoubleList(this); |
643 | for (int i = 0; i < nums.Data.Length; i++) | 643 | for (int i = 0; i < nums.Data.Length; i++) |
644 | { | 644 | { |
645 | ret *= (double)nums.Data[i]; | 645 | ret *= (double)nums.Data[i]; |
@@ -650,7 +650,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
650 | public double HarmonicMean() | 650 | public double HarmonicMean() |
651 | { | 651 | { |
652 | double ret = 0.0; | 652 | double ret = 0.0; |
653 | list nums = list.ToDoubleList(this); | 653 | list nums = ToDoubleList(this); |
654 | for (int i = 0; i < nums.Data.Length; i++) | 654 | for (int i = 0; i < nums.Data.Length; i++) |
655 | { | 655 | { |
656 | ret += 1.0 / (double)nums.Data[i]; | 656 | ret += 1.0 / (double)nums.Data[i]; |
@@ -661,7 +661,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
661 | public double Variance() | 661 | public double Variance() |
662 | { | 662 | { |
663 | double s = 0; | 663 | double s = 0; |
664 | list num = list.ToDoubleList(this); | 664 | list num = ToDoubleList(this); |
665 | for (int i = 0; i < num.Data.Length; i++) | 665 | for (int i = 0; i < num.Data.Length; i++) |
666 | { | 666 | { |
667 | s += Math.Pow((double)num.Data[i], 2); | 667 | s += Math.Pow((double)num.Data[i], 2); |
@@ -701,7 +701,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
701 | output = "["; | 701 | output = "["; |
702 | foreach (object o in m_data) | 702 | foreach (object o in m_data) |
703 | { | 703 | { |
704 | if (o is System.String) | 704 | if (o is String) |
705 | { | 705 | { |
706 | output = output + "\"" + o + "\", "; | 706 | output = output + "\"" + o + "\", "; |
707 | } | 707 | } |
@@ -837,7 +837,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
837 | 837 | ||
838 | #region Operators | 838 | #region Operators |
839 | 839 | ||
840 | static public implicit operator System.Boolean(key k) | 840 | static public implicit operator Boolean(key k) |
841 | { | 841 | { |
842 | if (k.value.Length == 0) | 842 | if (k.value.Length == 0) |
843 | { | 843 | { |
@@ -864,7 +864,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
864 | return new key(s); | 864 | return new key(s); |
865 | } | 865 | } |
866 | 866 | ||
867 | static public implicit operator System.String(key k) | 867 | static public implicit operator String(key k) |
868 | { | 868 | { |
869 | return k.value; | 869 | return k.value; |
870 | } | 870 | } |
@@ -917,7 +917,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
917 | #endregion | 917 | #endregion |
918 | 918 | ||
919 | #region Operators | 919 | #region Operators |
920 | static public implicit operator System.Boolean(LSLString s) | 920 | static public implicit operator Boolean(LSLString s) |
921 | { | 921 | { |
922 | if (s.m_string.Length == 0) | 922 | if (s.m_string.Length == 0) |
923 | { | 923 | { |
@@ -929,7 +929,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
929 | } | 929 | } |
930 | } | 930 | } |
931 | 931 | ||
932 | static public implicit operator System.String(LSLString s) | 932 | static public implicit operator String(LSLString s) |
933 | { | 933 | { |
934 | return s.m_string; | 934 | return s.m_string; |
935 | } | 935 | } |
@@ -1017,12 +1017,12 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
1017 | } | 1017 | } |
1018 | 1018 | ||
1019 | #endregion | 1019 | #endregion |
1020 | static public implicit operator System.Int32(LSLInteger i) | 1020 | static public implicit operator Int32(LSLInteger i) |
1021 | { | 1021 | { |
1022 | return i.value; | 1022 | return i.value; |
1023 | } | 1023 | } |
1024 | 1024 | ||
1025 | static public implicit operator System.Boolean(LSLInteger i) | 1025 | static public implicit operator Boolean(LSLInteger i) |
1026 | { | 1026 | { |
1027 | if (i.value == 0) | 1027 | if (i.value == 0) |
1028 | { | 1028 | { |
@@ -1086,7 +1086,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
1086 | 1086 | ||
1087 | #region Operators | 1087 | #region Operators |
1088 | 1088 | ||
1089 | static public implicit operator System.Double(LSLFloat f) | 1089 | static public implicit operator Double(LSLFloat f) |
1090 | { | 1090 | { |
1091 | return f.value; | 1091 | return f.value; |
1092 | } | 1092 | } |
@@ -1097,7 +1097,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
1097 | //} | 1097 | //} |
1098 | 1098 | ||
1099 | 1099 | ||
1100 | static public implicit operator System.Boolean(LSLFloat f) | 1100 | static public implicit operator Boolean(LSLFloat f) |
1101 | { | 1101 | { |
1102 | if (f.value == 0) | 1102 | if (f.value == 0) |
1103 | { | 1103 | { |
diff --git a/OpenSim/Region/ScriptEngine/Common/OSSL_BuilIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/OSSL_BuilIn_Commands.cs index de19f4e..b919f8d 100644 --- a/OpenSim/Region/ScriptEngine/Common/OSSL_BuilIn_Commands.cs +++ b/OpenSim/Region/ScriptEngine/Common/OSSL_BuilIn_Commands.cs | |||
@@ -25,21 +25,13 @@ | |||
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | */ | 26 | */ |
27 | using System; | 27 | using System; |
28 | using System.Collections; | ||
29 | using System.Collections.Generic; | ||
30 | using System.Runtime.Remoting.Lifetime; | ||
31 | using System.Text; | ||
32 | using System.Threading; | ||
33 | using Axiom.Math; | 28 | using Axiom.Math; |
34 | using libsecondlife; | 29 | using libsecondlife; |
35 | using OpenSim.Framework; | 30 | using Nini.Config; |
36 | using OpenSim.Framework.Communications; | 31 | using OpenSim.Framework.Console; |
37 | using OpenSim.Region.Environment.Interfaces; | 32 | using OpenSim.Region.Environment.Interfaces; |
38 | using OpenSim.Region.Environment.Scenes; | 33 | using OpenSim.Region.Environment.Scenes; |
39 | using OpenSim.Region.ScriptEngine.Common; | 34 | |
40 | using OpenSim.Region.ScriptEngine.Common.ScriptEngineBase; | ||
41 | using OpenSim.Region.Environment; | ||
42 | using OpenSim.Region.Environment.Modules.LandManagement; | ||
43 | //using OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL; | 35 | //using OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL; |
44 | 36 | ||
45 | namespace OpenSim.Region.ScriptEngine.Common | 37 | namespace OpenSim.Region.ScriptEngine.Common |
@@ -408,7 +400,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
408 | public bool osConsoleCommand(string command) | 400 | public bool osConsoleCommand(string command) |
409 | { | 401 | { |
410 | m_host.AddScriptLPS(1); | 402 | m_host.AddScriptLPS(1); |
411 | Nini.Config.IConfigSource config = new Nini.Config.IniConfigSource(Application.iniFilePath); | 403 | IConfigSource config = new IniConfigSource(Application.iniFilePath); |
412 | if (config.Configs["LL-Functions"] == null) | 404 | if (config.Configs["LL-Functions"] == null) |
413 | config.AddConfig("LL-Functions"); | 405 | config.AddConfig("LL-Functions"); |
414 | 406 | ||
@@ -416,7 +408,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
416 | { | 408 | { |
417 | if (World.PermissionsMngr.CanRunConsoleCommand(m_host.OwnerID)) | 409 | if (World.PermissionsMngr.CanRunConsoleCommand(m_host.OwnerID)) |
418 | { | 410 | { |
419 | OpenSim.Framework.Console.MainConsole.Instance.RunCommand(command); | 411 | MainConsole.Instance.RunCommand(command); |
420 | return true; | 412 | return true; |
421 | } | 413 | } |
422 | return false; | 414 | return false; |
diff --git a/OpenSim/Region/ScriptEngine/Common/OSSL_BuilIn_Commands_Interface.cs b/OpenSim/Region/ScriptEngine/Common/OSSL_BuilIn_Commands_Interface.cs index 3102e3f..a4dd3b0 100644 --- a/OpenSim/Region/ScriptEngine/Common/OSSL_BuilIn_Commands_Interface.cs +++ b/OpenSim/Region/ScriptEngine/Common/OSSL_BuilIn_Commands_Interface.cs | |||
@@ -25,10 +25,6 @@ | |||
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System; | ||
29 | using System.Collections.Generic; | ||
30 | using System.Text; | ||
31 | |||
32 | namespace OpenSim.Region.ScriptEngine.Common | 28 | namespace OpenSim.Region.ScriptEngine.Common |
33 | { | 29 | { |
34 | public interface OSSL_BuilIn_Commands_Interface | 30 | public interface OSSL_BuilIn_Commands_Interface |
diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AppDomainManager.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AppDomainManager.cs index 41100c9..262d75f 100644 --- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AppDomainManager.cs +++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AppDomainManager.cs | |||
@@ -29,7 +29,6 @@ using System; | |||
29 | using System.Collections; | 29 | using System.Collections; |
30 | using System.Collections.Generic; | 30 | using System.Collections.Generic; |
31 | using System.Reflection; | 31 | using System.Reflection; |
32 | using OpenSim.Region.ScriptEngine.Common; | ||
33 | 32 | ||
34 | namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase | 33 | namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase |
35 | { | 34 | { |
diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandManager.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandManager.cs index a1bb5c9..7dad7ee 100644 --- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandManager.cs +++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandManager.cs | |||
@@ -25,16 +25,11 @@ | |||
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System; | ||
29 | using System.Collections; | 28 | using System.Collections; |
30 | using System.Collections.Generic; | ||
31 | using System.Threading; | 29 | using System.Threading; |
32 | using libsecondlife; | 30 | using libsecondlife; |
33 | using Axiom.Math; | ||
34 | using OpenSim.Region.Environment.Interfaces; | ||
35 | using OpenSim.Region.Environment.Modules; | ||
36 | using OpenSim.Region.Environment.Scenes; | ||
37 | using OpenSim.Framework; | 31 | using OpenSim.Framework; |
32 | using OpenSim.Region.Environment.Interfaces; | ||
38 | using OpenSim.Region.ScriptEngine.Common.ScriptEngineBase.AsyncCommandPlugins; | 33 | using OpenSim.Region.ScriptEngine.Common.ScriptEngineBase.AsyncCommandPlugins; |
39 | using Timer=OpenSim.Region.ScriptEngine.Common.ScriptEngineBase.AsyncCommandPlugins.Timer; | 34 | using Timer=OpenSim.Region.ScriptEngine.Common.ScriptEngineBase.AsyncCommandPlugins.Timer; |
40 | 35 | ||
@@ -50,11 +45,11 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase | |||
50 | 45 | ||
51 | public ScriptEngine m_ScriptEngine; | 46 | public ScriptEngine m_ScriptEngine; |
52 | 47 | ||
53 | public AsyncCommandPlugins.Timer m_Timer; | 48 | public Timer m_Timer; |
54 | public AsyncCommandPlugins.HttpRequest m_HttpRequest; | 49 | public HttpRequest m_HttpRequest; |
55 | public AsyncCommandPlugins.Listener m_Listener; | 50 | public Listener m_Listener; |
56 | public AsyncCommandPlugins.SensorRepeat m_SensorRepeat; | 51 | public SensorRepeat m_SensorRepeat; |
57 | public AsyncCommandPlugins.XmlRequest m_XmlRequest; | 52 | public XmlRequest m_XmlRequest; |
58 | 53 | ||
59 | public AsyncCommandManager(ScriptEngine _ScriptEngine) | 54 | public AsyncCommandManager(ScriptEngine _ScriptEngine) |
60 | { | 55 | { |
@@ -81,7 +76,7 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase | |||
81 | cmdHandlerThread.Priority = ThreadPriority.BelowNormal; | 76 | cmdHandlerThread.Priority = ThreadPriority.BelowNormal; |
82 | cmdHandlerThread.IsBackground = true; | 77 | cmdHandlerThread.IsBackground = true; |
83 | cmdHandlerThread.Start(); | 78 | cmdHandlerThread.Start(); |
84 | OpenSim.Framework.ThreadTracker.Add(cmdHandlerThread); | 79 | ThreadTracker.Add(cmdHandlerThread); |
85 | } | 80 | } |
86 | } | 81 | } |
87 | 82 | ||
diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/HttpRequest.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/HttpRequest.cs index d62734f..521402e 100644 --- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/HttpRequest.cs +++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/HttpRequest.cs | |||
@@ -26,16 +26,8 @@ | |||
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System; | 28 | using System; |
29 | using System.Collections; | ||
30 | using System.Collections.Generic; | ||
31 | using System.Threading; | ||
32 | using libsecondlife; | ||
33 | using Axiom.Math; | ||
34 | using OpenSim.Region.Environment.Interfaces; | 29 | using OpenSim.Region.Environment.Interfaces; |
35 | using OpenSim.Region.Environment.Modules; | 30 | using OpenSim.Region.Environment.Modules; |
36 | using OpenSim.Region.Environment.Scenes; | ||
37 | using OpenSim.Framework; | ||
38 | using OpenSim.Region.ScriptEngine.Common.ScriptEngineBase.AsyncCommandPlugins; | ||
39 | 31 | ||
40 | namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase.AsyncCommandPlugins | 32 | namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase.AsyncCommandPlugins |
41 | { | 33 | { |
diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/Listener.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/Listener.cs index 00cbd8c..874a905 100644 --- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/Listener.cs +++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/Listener.cs | |||
@@ -25,16 +25,8 @@ | |||
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System; | ||
29 | using System.Collections; | ||
30 | using System.Collections.Generic; | ||
31 | using System.Threading; | ||
32 | using libsecondlife; | ||
33 | using Axiom.Math; | ||
34 | using OpenSim.Region.Environment.Interfaces; | 28 | using OpenSim.Region.Environment.Interfaces; |
35 | using OpenSim.Region.Environment.Modules; | 29 | using OpenSim.Region.Environment.Modules; |
36 | using OpenSim.Region.Environment.Scenes; | ||
37 | using OpenSim.Framework; | ||
38 | 30 | ||
39 | namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase.AsyncCommandPlugins | 31 | namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase.AsyncCommandPlugins |
40 | { | 32 | { |
diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/SensorRepeat.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/SensorRepeat.cs index fd8dbd1..71ae80c 100644 --- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/SensorRepeat.cs +++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/SensorRepeat.cs | |||
@@ -26,15 +26,10 @@ | |||
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System; | 28 | using System; |
29 | using System.Collections; | ||
30 | using System.Collections.Generic; | 29 | using System.Collections.Generic; |
31 | using System.Threading; | ||
32 | using libsecondlife; | 30 | using libsecondlife; |
33 | using Axiom.Math; | ||
34 | using OpenSim.Region.Environment.Interfaces; | ||
35 | using OpenSim.Region.Environment.Modules; | ||
36 | using OpenSim.Region.Environment.Scenes; | ||
37 | using OpenSim.Framework; | 31 | using OpenSim.Framework; |
32 | using OpenSim.Region.Environment.Scenes; | ||
38 | 33 | ||
39 | namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase.AsyncCommandPlugins | 34 | namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase.AsyncCommandPlugins |
40 | { | 35 | { |
diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/Timer.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/Timer.cs index 63a8d19..141e471 100644 --- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/Timer.cs +++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/Timer.cs | |||
@@ -28,13 +28,7 @@ | |||
28 | using System; | 28 | using System; |
29 | using System.Collections; | 29 | using System.Collections; |
30 | using System.Collections.Generic; | 30 | using System.Collections.Generic; |
31 | using System.Threading; | ||
32 | using libsecondlife; | 31 | using libsecondlife; |
33 | using Axiom.Math; | ||
34 | using OpenSim.Region.Environment.Interfaces; | ||
35 | using OpenSim.Region.Environment.Modules; | ||
36 | using OpenSim.Region.Environment.Scenes; | ||
37 | using OpenSim.Framework; | ||
38 | 32 | ||
39 | namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase.AsyncCommandPlugins | 33 | namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase.AsyncCommandPlugins |
40 | { | 34 | { |
diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/XmlRequest.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/XmlRequest.cs index be4f418..c3e1804 100644 --- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/XmlRequest.cs +++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/AsyncCommandPlugins/XmlRequest.cs | |||
@@ -26,15 +26,8 @@ | |||
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System; | 28 | using System; |
29 | using System.Collections; | ||
30 | using System.Collections.Generic; | ||
31 | using System.Threading; | ||
32 | using libsecondlife; | ||
33 | using Axiom.Math; | ||
34 | using OpenSim.Region.Environment.Interfaces; | 29 | using OpenSim.Region.Environment.Interfaces; |
35 | using OpenSim.Region.Environment.Modules; | 30 | using OpenSim.Region.Environment.Modules; |
36 | using OpenSim.Region.Environment.Scenes; | ||
37 | using OpenSim.Framework; | ||
38 | 31 | ||
39 | namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase.AsyncCommandPlugins | 32 | namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase.AsyncCommandPlugins |
40 | { | 33 | { |
diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventManager.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventManager.cs index 2f2b384..b4789a9 100644 --- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventManager.cs +++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventManager.cs | |||
@@ -35,7 +35,7 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase | |||
35 | /// Prepares events so they can be directly executed upon a script by EventQueueManager, then queues it. | 35 | /// Prepares events so they can be directly executed upon a script by EventQueueManager, then queues it. |
36 | /// </summary> | 36 | /// </summary> |
37 | [Serializable] | 37 | [Serializable] |
38 | public class EventManager : OpenSim.Region.ScriptEngine.Common.ScriptServerInterfaces.RemoteEvents, iScriptEngineFunctionModule | 38 | public class EventManager : ScriptServerInterfaces.RemoteEvents, iScriptEngineFunctionModule |
39 | { | 39 | { |
40 | // | 40 | // |
41 | // Class is instanced in "ScriptEngine" and Uses "EventQueueManager" that is also instanced in "ScriptEngine". | 41 | // Class is instanced in "ScriptEngine" and Uses "EventQueueManager" that is also instanced in "ScriptEngine". |
diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueManager.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueManager.cs index cd03699..7cbbd4f 100644 --- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueManager.cs +++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueManager.cs | |||
@@ -28,10 +28,7 @@ | |||
28 | using System; | 28 | using System; |
29 | using System.Collections; | 29 | using System.Collections; |
30 | using System.Collections.Generic; | 30 | using System.Collections.Generic; |
31 | using System.Threading; | ||
32 | using libsecondlife; | 31 | using libsecondlife; |
33 | using OpenSim.Framework; | ||
34 | using OpenSim.Region.Environment.Scenes.Scripting; | ||
35 | 32 | ||
36 | namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase | 33 | namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase |
37 | { | 34 | { |
diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueThreadClass.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueThreadClass.cs index b8d950a..d77f698 100644 --- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueThreadClass.cs +++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueThreadClass.cs | |||
@@ -27,11 +27,8 @@ | |||
27 | 27 | ||
28 | using System; | 28 | using System; |
29 | using System.Collections; | 29 | using System.Collections; |
30 | using System.Collections.Generic; | ||
31 | using System.Text; | ||
32 | using System.Threading; | 30 | using System.Threading; |
33 | using libsecondlife; | 31 | using libsecondlife; |
34 | using Nini.Config; | ||
35 | using OpenSim.Framework; | 32 | using OpenSim.Framework; |
36 | using OpenSim.Region.Environment.Scenes.Scripting; | 33 | using OpenSim.Region.Environment.Scenes.Scripting; |
37 | 34 | ||
@@ -123,7 +120,7 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase | |||
123 | EventQueueThread.Priority = MyThreadPriority; | 120 | EventQueueThread.Priority = MyThreadPriority; |
124 | EventQueueThread.Name = "EventQueueManagerThread_" + ThreadCount; | 121 | EventQueueThread.Name = "EventQueueManagerThread_" + ThreadCount; |
125 | EventQueueThread.Start(); | 122 | EventQueueThread.Start(); |
126 | OpenSim.Framework.ThreadTracker.Add(EventQueueThread); | 123 | ThreadTracker.Add(EventQueueThread); |
127 | 124 | ||
128 | // Look at this... Don't you wish everyone did that solid coding everywhere? :P | 125 | // Look at this... Don't you wish everyone did that solid coding everywhere? :P |
129 | if (ThreadCount == int.MaxValue) | 126 | if (ThreadCount == int.MaxValue) |
diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/MaintenanceThread.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/MaintenanceThread.cs index ad41e5b..2bf0e41 100644 --- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/MaintenanceThread.cs +++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/MaintenanceThread.cs | |||
@@ -27,9 +27,8 @@ | |||
27 | 27 | ||
28 | using System; | 28 | using System; |
29 | using System.Collections; | 29 | using System.Collections; |
30 | using System.Collections.Generic; | ||
31 | using System.Text; | ||
32 | using System.Threading; | 30 | using System.Threading; |
31 | using OpenSim.Framework; | ||
33 | 32 | ||
34 | namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase | 33 | namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase |
35 | { | 34 | { |
@@ -94,7 +93,7 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase | |||
94 | MaintenanceThreadThread.Name = "ScriptMaintenanceThread"; | 93 | MaintenanceThreadThread.Name = "ScriptMaintenanceThread"; |
95 | MaintenanceThreadThread.IsBackground = true; | 94 | MaintenanceThreadThread.IsBackground = true; |
96 | MaintenanceThreadThread.Start(); | 95 | MaintenanceThreadThread.Start(); |
97 | OpenSim.Framework.ThreadTracker.Add(MaintenanceThreadThread); | 96 | ThreadTracker.Add(MaintenanceThreadThread); |
98 | } | 97 | } |
99 | } | 98 | } |
100 | 99 | ||
@@ -144,7 +143,7 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase | |||
144 | { | 143 | { |
145 | while (true) | 144 | while (true) |
146 | { | 145 | { |
147 | System.Threading.Thread.Sleep(MaintenanceLoopms); // Sleep before next pass | 146 | Thread.Sleep(MaintenanceLoopms); // Sleep before next pass |
148 | 147 | ||
149 | // Reset counters? | 148 | // Reset counters? |
150 | if (MaintenanceLoopTicks_ScriptLoadUnload_ResetCount) | 149 | if (MaintenanceLoopTicks_ScriptLoadUnload_ResetCount) |
diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptEngine.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptEngine.cs index 02e49a2..a7ad50d 100644 --- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptEngine.cs +++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptEngine.cs | |||
@@ -27,13 +27,11 @@ | |||
27 | 27 | ||
28 | using System; | 28 | using System; |
29 | using System.Collections.Generic; | 29 | using System.Collections.Generic; |
30 | using System.IO; | 30 | using System.Reflection; |
31 | using log4net; | ||
31 | using Nini.Config; | 32 | using Nini.Config; |
32 | using OpenSim.Framework.Console; | ||
33 | using OpenSim.Region.Environment.Interfaces; | 33 | using OpenSim.Region.Environment.Interfaces; |
34 | using OpenSim.Region.Environment.Scenes; | 34 | using OpenSim.Region.Environment.Scenes; |
35 | using OpenSim.Region.ScriptEngine.Common; | ||
36 | using OpenSim.Region.ScriptEngine.Common.ScriptEngineBase; | ||
37 | 35 | ||
38 | namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase | 36 | namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase |
39 | { | 37 | { |
@@ -42,9 +40,9 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase | |||
42 | /// </summary> | 40 | /// </summary> |
43 | /// | 41 | /// |
44 | [Serializable] | 42 | [Serializable] |
45 | public abstract class ScriptEngine : IRegionModule, OpenSim.Region.ScriptEngine.Common.ScriptServerInterfaces.ScriptEngine, iScriptEngineFunctionModule | 43 | public abstract class ScriptEngine : IRegionModule, ScriptServerInterfaces.ScriptEngine, iScriptEngineFunctionModule |
46 | { | 44 | { |
47 | private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); | 45 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
48 | 46 | ||
49 | public static List<ScriptEngine> ScriptEngines = new List<ScriptEngine>(); | 47 | public static List<ScriptEngine> ScriptEngines = new List<ScriptEngine>(); |
50 | public Scene World; | 48 | public Scene World; |
@@ -75,7 +73,7 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase | |||
75 | 73 | ||
76 | public abstract ScriptManager _GetScriptManager(); | 74 | public abstract ScriptManager _GetScriptManager(); |
77 | 75 | ||
78 | public log4net.ILog Log | 76 | public ILog Log |
79 | { | 77 | { |
80 | get { return m_log; } | 78 | get { return m_log; } |
81 | } | 79 | } |
diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptManager.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptManager.cs index 09f84d6..cd2e530 100644 --- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptManager.cs +++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptManager.cs | |||
@@ -32,9 +32,7 @@ using System.Reflection; | |||
32 | using System.Runtime.Serialization.Formatters.Binary; | 32 | using System.Runtime.Serialization.Formatters.Binary; |
33 | using System.Threading; | 33 | using System.Threading; |
34 | using libsecondlife; | 34 | using libsecondlife; |
35 | using OpenSim.Framework; | ||
36 | using OpenSim.Region.Environment.Scenes; | 35 | using OpenSim.Region.Environment.Scenes; |
37 | using OpenSim.Region.ScriptEngine.Common; | ||
38 | 36 | ||
39 | namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase | 37 | namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase |
40 | { | 38 | { |
@@ -106,9 +104,9 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase | |||
106 | 104 | ||
107 | #region Object init/shutdown | 105 | #region Object init/shutdown |
108 | 106 | ||
109 | public ScriptEngineBase.ScriptEngine m_scriptEngine; | 107 | public ScriptEngine m_scriptEngine; |
110 | 108 | ||
111 | public ScriptManager(ScriptEngineBase.ScriptEngine scriptEngine) | 109 | public ScriptManager(ScriptEngine scriptEngine) |
112 | { | 110 | { |
113 | m_scriptEngine = scriptEngine; | 111 | m_scriptEngine = scriptEngine; |
114 | } | 112 | } |
diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/iScriptEngineFunctionModule.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/iScriptEngineFunctionModule.cs index 4e037b3..768ba6d 100644 --- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/iScriptEngineFunctionModule.cs +++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/iScriptEngineFunctionModule.cs | |||
@@ -25,10 +25,6 @@ | |||
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System; | ||
29 | using System.Collections.Generic; | ||
30 | using System.Text; | ||
31 | |||
32 | namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase | 28 | namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase |
33 | { | 29 | { |
34 | public interface iScriptEngineFunctionModule | 30 | public interface iScriptEngineFunctionModule |
diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptServerInterfaces.cs b/OpenSim/Region/ScriptEngine/Common/ScriptServerInterfaces.cs index 6110251..1119fe8 100644 --- a/OpenSim/Region/ScriptEngine/Common/ScriptServerInterfaces.cs +++ b/OpenSim/Region/ScriptEngine/Common/ScriptServerInterfaces.cs | |||
@@ -28,7 +28,6 @@ | |||
28 | using libsecondlife; | 28 | using libsecondlife; |
29 | using Nini.Config; | 29 | using Nini.Config; |
30 | using OpenSim.Framework; | 30 | using OpenSim.Framework; |
31 | using OpenSim.Framework.Console; | ||
32 | using OpenSim.Region.Environment.Scenes; | 31 | using OpenSim.Region.Environment.Scenes; |
33 | using OpenSim.Region.ScriptEngine.Common.ScriptEngineBase; | 32 | using OpenSim.Region.ScriptEngine.Common.ScriptEngineBase; |
34 | 33 | ||
diff --git a/OpenSim/Region/ScriptEngine/Common/TRPC/MyBase.cs b/OpenSim/Region/ScriptEngine/Common/TRPC/MyBase.cs index 6fe6381..14c6078 100644 --- a/OpenSim/Region/ScriptEngine/Common/TRPC/MyBase.cs +++ b/OpenSim/Region/ScriptEngine/Common/TRPC/MyBase.cs | |||
@@ -25,10 +25,6 @@ | |||
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System; | ||
29 | using System.Collections.Generic; | ||
30 | using System.Text; | ||
31 | |||
32 | namespace OpenSim.Region.ScriptEngine.Common.TRPC | 28 | namespace OpenSim.Region.ScriptEngine.Common.TRPC |
33 | { | 29 | { |
34 | class MyBase | 30 | class MyBase |
diff --git a/OpenSim/Region/ScriptEngine/Common/TRPC/TCPClient.cs b/OpenSim/Region/ScriptEngine/Common/TRPC/TCPClient.cs index 7689d69..624c3bb 100644 --- a/OpenSim/Region/ScriptEngine/Common/TRPC/TCPClient.cs +++ b/OpenSim/Region/ScriptEngine/Common/TRPC/TCPClient.cs | |||
@@ -25,12 +25,10 @@ | |||
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System; | ||
29 | using System.Collections.Generic; | 28 | using System.Collections.Generic; |
30 | using System.Diagnostics; | 29 | using System.Diagnostics; |
31 | using System.Net; | 30 | using System.Net; |
32 | using System.Net.Sockets; | 31 | using System.Net.Sockets; |
33 | using System.Text; | ||
34 | 32 | ||
35 | namespace OpenSim.Region.ScriptEngine.Common.TRPC | 33 | namespace OpenSim.Region.ScriptEngine.Common.TRPC |
36 | { | 34 | { |
diff --git a/OpenSim/Region/ScriptEngine/Common/TRPC/TCPCommon.cs b/OpenSim/Region/ScriptEngine/Common/TRPC/TCPCommon.cs index 521d75b..ab9d9b4 100644 --- a/OpenSim/Region/ScriptEngine/Common/TRPC/TCPCommon.cs +++ b/OpenSim/Region/ScriptEngine/Common/TRPC/TCPCommon.cs | |||
@@ -25,11 +25,13 @@ | |||
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System.Net; | ||
29 | |||
28 | namespace OpenSim.Region.ScriptEngine.Common.TRPC | 30 | namespace OpenSim.Region.ScriptEngine.Common.TRPC |
29 | { | 31 | { |
30 | public class TCPCommon | 32 | public class TCPCommon |
31 | { | 33 | { |
32 | public delegate void ClientConnectedDelegate(int ID, System.Net.EndPoint Remote); | 34 | public delegate void ClientConnectedDelegate(int ID, EndPoint Remote); |
33 | public delegate void DataReceivedDelegate(int ID, byte[] data, int offset, int length); | 35 | public delegate void DataReceivedDelegate(int ID, byte[] data, int offset, int length); |
34 | public delegate void DataSentDelegate(int ID, int length); | 36 | public delegate void DataSentDelegate(int ID, int length); |
35 | public delegate void CloseDelegate(int ID); | 37 | public delegate void CloseDelegate(int ID); |
@@ -46,7 +48,7 @@ namespace OpenSim.Region.ScriptEngine.Common.TRPC | |||
46 | 48 | ||
47 | public interface ClientInterface : ServerAndClientInterface | 49 | public interface ClientInterface : ServerAndClientInterface |
48 | { | 50 | { |
49 | event TCPCommon.ConnectErrorDelegate ConnectError; | 51 | event ConnectErrorDelegate ConnectError; |
50 | void Connect(string RemoteHost, int RemotePort); | 52 | void Connect(string RemoteHost, int RemotePort); |
51 | void Disconnect(int ID); | 53 | void Disconnect(int ID); |
52 | } | 54 | } |
diff --git a/OpenSim/Region/ScriptEngine/Common/TRPC/TCPServer.cs b/OpenSim/Region/ScriptEngine/Common/TRPC/TCPServer.cs index 5d1e53a..55a20e7 100644 --- a/OpenSim/Region/ScriptEngine/Common/TRPC/TCPServer.cs +++ b/OpenSim/Region/ScriptEngine/Common/TRPC/TCPServer.cs | |||
@@ -30,7 +30,6 @@ using System.Collections.Generic; | |||
30 | using System.Diagnostics; | 30 | using System.Diagnostics; |
31 | using System.Net; | 31 | using System.Net; |
32 | using System.Net.Sockets; | 32 | using System.Net.Sockets; |
33 | using TCPCommon=OpenSim.Region.ScriptEngine.Common.TRPC.TCPCommon; | ||
34 | 33 | ||
35 | namespace OpenSim.Region.ScriptEngine.Common.TRPC | 34 | namespace OpenSim.Region.ScriptEngine.Common.TRPC |
36 | { | 35 | { |
diff --git a/OpenSim/Region/ScriptEngine/Common/TRPC_Remote.cs b/OpenSim/Region/ScriptEngine/Common/TRPC_Remote.cs index 4567e60..013ae0f 100644 --- a/OpenSim/Region/ScriptEngine/Common/TRPC_Remote.cs +++ b/OpenSim/Region/ScriptEngine/Common/TRPC_Remote.cs | |||
@@ -28,7 +28,9 @@ | |||
28 | using System; | 28 | using System; |
29 | using System.Collections.Generic; | 29 | using System.Collections.Generic; |
30 | using System.Diagnostics; | 30 | using System.Diagnostics; |
31 | using System.Net; | ||
31 | using System.Text; | 32 | using System.Text; |
33 | using System.Web; | ||
32 | using libsecondlife; | 34 | using libsecondlife; |
33 | using OpenSim.Region.ScriptEngine.Common.TRPC; | 35 | using OpenSim.Region.ScriptEngine.Common.TRPC; |
34 | 36 | ||
@@ -41,24 +43,24 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
41 | 43 | ||
42 | public delegate void ReceiveCommandDelegate(int ID, string Command, params object[] p); | 44 | public delegate void ReceiveCommandDelegate(int ID, string Command, params object[] p); |
43 | public event ReceiveCommandDelegate ReceiveCommand; | 45 | public event ReceiveCommandDelegate ReceiveCommand; |
44 | System.Collections.Generic.Dictionary<string, Type> TypeDictionary = new Dictionary<string, Type>(); | 46 | Dictionary<string, Type> TypeDictionary = new Dictionary<string, Type>(); |
45 | Type[] Types = | 47 | Type[] Types = |
46 | { | 48 | { |
47 | typeof(System.String), | 49 | typeof(String), |
48 | typeof(System.Int16), | 50 | typeof(Int16), |
49 | typeof(System.Int32), | 51 | typeof(Int32), |
50 | typeof(System.Int64), | 52 | typeof(Int64), |
51 | typeof(System.Double), | 53 | typeof(Double), |
52 | typeof(System.Decimal), | 54 | typeof(Decimal), |
53 | typeof(System.Array), | 55 | typeof(Array), |
54 | typeof(LLUUID), | 56 | typeof(LLUUID), |
55 | typeof(System.UInt16), | 57 | typeof(UInt16), |
56 | typeof(System.UInt32), | 58 | typeof(UInt32), |
57 | typeof(System.UInt64) | 59 | typeof(UInt64) |
58 | }; | 60 | }; |
59 | 61 | ||
60 | // TODO: Maybe we should move queue into TCPSocket so we won't have to keep one queue instance per connection | 62 | // TODO: Maybe we should move queue into TCPSocket so we won't have to keep one queue instance per connection |
61 | private System.Collections.Generic.Dictionary<int, InQueueStruct> InQueue = new Dictionary<int, InQueueStruct>(); | 63 | private Dictionary<int, InQueueStruct> InQueue = new Dictionary<int, InQueueStruct>(); |
62 | private class InQueueStruct | 64 | private class InQueueStruct |
63 | { | 65 | { |
64 | public byte[] Queue; | 66 | public byte[] Queue; |
@@ -81,7 +83,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
81 | } | 83 | } |
82 | } | 84 | } |
83 | 85 | ||
84 | void TCPS_ClientConnected(int ID, System.Net.EndPoint Remote) | 86 | void TCPS_ClientConnected(int ID, EndPoint Remote) |
85 | { | 87 | { |
86 | // Create a incoming queue for this connection | 88 | // Create a incoming queue for this connection |
87 | InQueueStruct iq = new InQueueStruct(); | 89 | InQueueStruct iq = new InQueueStruct(); |
@@ -165,7 +167,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
165 | for (int i = 1; i < parts.Length; i++) | 167 | for (int i = 1; i < parts.Length; i++) |
166 | { | 168 | { |
167 | string[] spl; | 169 | string[] spl; |
168 | spl = System.Web.HttpUtility.UrlDecode(parts[i]).Split('|'); | 170 | spl = HttpUtility.UrlDecode(parts[i]).Split('|'); |
169 | string t = spl[0]; | 171 | string t = spl[0]; |
170 | param[i - 1] = Convert.ChangeType(spl[1], TypeLookup(t)); | 172 | param[i - 1] = Convert.ChangeType(spl[1], TypeLookup(t)); |
171 | } | 173 | } |
@@ -192,7 +194,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
192 | string tmpStr = Command; | 194 | string tmpStr = Command; |
193 | for (int i = 0; i < p.Length; i++) | 195 | for (int i = 0; i < p.Length; i++) |
194 | { | 196 | { |
195 | tmpStr += "," + p[i].GetType().ToString() + "|" + System.Web.HttpUtility.UrlEncode(p[i].ToString()); // .Replace(",", "%44") | 197 | tmpStr += "," + p[i].GetType().ToString() + "|" + HttpUtility.UrlEncode(p[i].ToString()); // .Replace(",", "%44") |
196 | } | 198 | } |
197 | tmpStr += "\n"; | 199 | tmpStr += "\n"; |
198 | byte[] byteData = Encoding.ASCII.GetBytes(tmpStr); | 200 | byte[] byteData = Encoding.ASCII.GetBytes(tmpStr); |