llList2Key, llList2Rot, llList2List

afrisby
Tedd Hansen 2007-09-15 15:55:40 +00:00
parent ad042f1d75
commit c6344fcf94
1 changed files with 9 additions and 3 deletions

View File

@ -471,7 +471,11 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler
public LSL_Types.Vector3 llGetCenterOfMass() { NotImplemented("llGetCenterOfMass"); return new LSL_Types.Vector3(); }
public List<string> llListSort(List<string> src, int stride, int ascending) { NotImplemented("llListSort"); return new List<string>(); ; }
public List<string> llListSort(List<string> src, int stride, int ascending) {
//SortedList<string, int> sorted = new SortedList<string, int>();
//foreach (string s in src)
NotImplemented("llListSort"); return new List<string>(); ;
}
public int llGetListLength(List<string> src)
{
@ -501,14 +505,16 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler
public string llList2Key(List<string> src, int index)
{
//return OpenSim.Framework.Types.ToStringHyphenated(src[index]);
return "";
return src[index].ToString();
}
public LSL_Types.Vector3 llList2Vector(List<string> 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<string> src, int index) { NotImplemented("llList2Rot"); return new LSL_Types.Quaternion(); }
public LSL_Types.Quaternion llList2Rot(List<string> 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<string> llList2List(List<string> src, int start, int end)
{
if (end > start)