Thank you, Melanie for a patch that helps conversion

from a string to a vector in OSSL.
0.6.0-stable
Charles Krinke 2008-05-09 03:23:52 +00:00
parent 6ce00ce460
commit 74df815630
1 changed files with 15 additions and 0 deletions

View File

@ -1155,6 +1155,11 @@ namespace OpenSim.Region.ScriptEngine.Common
return new LSLString(d);
}
public static implicit operator Vector3(LSLString s)
{
return new Vector3(s.m_string);
}
#endregion
#region Overriders
@ -1267,6 +1272,16 @@ namespace OpenSim.Region.ScriptEngine.Common
return (double)i.value;
}
public static bool operator true(LSLInteger i)
{
return i.value != 0;
}
public static bool operator false(LSLInteger i)
{
return i.value == 0;
}
#region Overriders
public override string ToString()