diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/Server_API/LSL_BuiltIn_Commands.cs | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/Server_API/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/Server_API/LSL_BuiltIn_Commands.cs index 6000193..80e52c3 100644 --- a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/Server_API/LSL_BuiltIn_Commands.cs +++ b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/Server_API/LSL_BuiltIn_Commands.cs | |||
@@ -471,7 +471,11 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler | |||
471 | 471 | ||
472 | public LSL_Types.Vector3 llGetCenterOfMass() { NotImplemented("llGetCenterOfMass"); return new LSL_Types.Vector3(); } | 472 | public LSL_Types.Vector3 llGetCenterOfMass() { NotImplemented("llGetCenterOfMass"); return new LSL_Types.Vector3(); } |
473 | 473 | ||
474 | public List<string> llListSort(List<string> src, int stride, int ascending) { NotImplemented("llListSort"); return new List<string>(); ; } | 474 | public List<string> llListSort(List<string> src, int stride, int ascending) { |
475 | //SortedList<string, int> sorted = new SortedList<string, int>(); | ||
476 | //foreach (string s in src) | ||
477 | NotImplemented("llListSort"); return new List<string>(); ; | ||
478 | } | ||
475 | 479 | ||
476 | public int llGetListLength(List<string> src) | 480 | public int llGetListLength(List<string> src) |
477 | { | 481 | { |
@@ -501,14 +505,16 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler | |||
501 | public string llList2Key(List<string> src, int index) | 505 | public string llList2Key(List<string> src, int index) |
502 | { | 506 | { |
503 | //return OpenSim.Framework.Types.ToStringHyphenated(src[index]); | 507 | //return OpenSim.Framework.Types.ToStringHyphenated(src[index]); |
504 | return ""; | 508 | return src[index].ToString(); |
505 | } | 509 | } |
506 | 510 | ||
507 | public LSL_Types.Vector3 llList2Vector(List<string> src, int index) | 511 | public LSL_Types.Vector3 llList2Vector(List<string> src, int index) |
508 | { | 512 | { |
509 | return new LSL_Types.Vector3(double.Parse(src[index]), double.Parse(src[index + 1]), double.Parse(src[index + 2])); | 513 | return new LSL_Types.Vector3(double.Parse(src[index]), double.Parse(src[index + 1]), double.Parse(src[index + 2])); |
510 | } | 514 | } |
511 | public LSL_Types.Quaternion llList2Rot(List<string> src, int index) { NotImplemented("llList2Rot"); return new LSL_Types.Quaternion(); } | 515 | public LSL_Types.Quaternion llList2Rot(List<string> src, int index) { |
516 | return new LSL_Types.Quaternion(double.Parse(src[index]), double.Parse(src[index + 1]), double.Parse(src[index + 2]), double.Parse(src[index + 3])); | ||
517 | } | ||
512 | public List<string> llList2List(List<string> src, int start, int end) | 518 | public List<string> llList2List(List<string> src, int start, int end) |
513 | { | 519 | { |
514 | if (end > start) | 520 | if (end > start) |