From 9a6bdd97017b0b852cda23c3c2b8a9189e625d2c Mon Sep 17 00:00:00 2001 From: Charles Krinke Date: Sat, 16 Aug 2008 02:28:30 +0000 Subject: [PATCH] Mantis#1963. Thank you kindly, Krtaylor for a patch that solves: XEngine missing string constructor for LSLInteger and LSLFloat --- OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs index d15aa81585..8326e16a12 100644 --- a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs +++ b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs @@ -1254,6 +1254,11 @@ namespace OpenSim.Region.ScriptEngine.Shared value = (int)d; } + public LSLInteger(string s) + { + value = (int)double.Parse(s); + } + #endregion #region Operators @@ -1451,6 +1456,11 @@ namespace OpenSim.Region.ScriptEngine.Shared this.value = d; } + public LSLFloat(string s) + { + this.value = double.Parse(s); + } + #endregion #region Operators