From c6344fcf945b5789c802766bcf7b12c503e64ec1 Mon Sep 17 00:00:00 2001 From: Tedd Hansen Date: Sat, 15 Sep 2007 15:55:40 +0000 Subject: llList2Key, llList2Rot, llList2List --- .../DotNetEngine/Compiler/Server_API/LSL_BuiltIn_Commands.cs | 12 +++++++++--- 1 file 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 public LSL_Types.Vector3 llGetCenterOfMass() { NotImplemented("llGetCenterOfMass"); return new LSL_Types.Vector3(); } - public List llListSort(List src, int stride, int ascending) { NotImplemented("llListSort"); return new List(); ; } + public List llListSort(List src, int stride, int ascending) { + //SortedList sorted = new SortedList(); + //foreach (string s in src) + NotImplemented("llListSort"); return new List(); ; + } public int llGetListLength(List src) { @@ -501,14 +505,16 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler public string llList2Key(List src, int index) { //return OpenSim.Framework.Types.ToStringHyphenated(src[index]); - return ""; + return src[index].ToString(); } public LSL_Types.Vector3 llList2Vector(List src, int index) { return new LSL_Types.Vector3(double.Parse(src[index]), double.Parse(src[index + 1]), double.Parse(src[index + 2])); } - public LSL_Types.Quaternion llList2Rot(List src, int index) { NotImplemented("llList2Rot"); return new LSL_Types.Quaternion(); } + public LSL_Types.Quaternion llList2Rot(List src, int index) { + return new LSL_Types.Quaternion(double.Parse(src[index]), double.Parse(src[index + 1]), double.Parse(src[index + 2]), double.Parse(src[index + 3])); + } public List llList2List(List src, int start, int end) { if (end > start) -- cgit v1.1