diff options
author | Mike Mazur | 2008-07-28 02:36:26 +0000 |
---|---|---|
committer | Mike Mazur | 2008-07-28 02:36:26 +0000 |
commit | d959c65b91a9acc3b29478907a66afc16f01b047 (patch) | |
tree | 34e8caf993bf9ad13ec6f0c45ca1feab59aae163 /OpenSim/Region/ScriptEngine/Common | |
parent | Adding explicit cast from LSLFloat to LSLInteger. Work on issue 1822. (diff) | |
download | opensim-SC_OLD-d959c65b91a9acc3b29478907a66afc16f01b047.zip opensim-SC_OLD-d959c65b91a9acc3b29478907a66afc16f01b047.tar.gz opensim-SC_OLD-d959c65b91a9acc3b29478907a66afc16f01b047.tar.bz2 opensim-SC_OLD-d959c65b91a9acc3b29478907a66afc16f01b047.tar.xz |
-implement LSLString -> Quaternion explicit cast
-sync Shared/LSL_Types.cs with Common/LSL_Types.cs
-get the test script in issue 1822 to compile
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Common/LSL_Types.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs b/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs index d0871bc..74c9935 100644 --- a/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs +++ b/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs | |||
@@ -1190,6 +1190,11 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
1190 | return new Vector3(s.m_string); | 1190 | return new Vector3(s.m_string); |
1191 | } | 1191 | } |
1192 | 1192 | ||
1193 | public static implicit operator Quaternion(LSLString s) | ||
1194 | { | ||
1195 | return new Quaternion(s.m_string); | ||
1196 | } | ||
1197 | |||
1193 | public static implicit operator LSLFloat(LSLString s) | 1198 | public static implicit operator LSLFloat(LSLString s) |
1194 | { | 1199 | { |
1195 | return new LSLFloat(Convert.ToDouble(s.m_string)); | 1200 | return new LSLFloat(Convert.ToDouble(s.m_string)); |