Mantis#1963. Thank you kindly, Krtaylor for a patch that solves:

XEngine missing string constructor for LSLInteger and LSLFloat
0.6.0-stable
Charles Krinke 2008-08-16 02:28:30 +00:00
parent 328ab79b78
commit 9a6bdd9701
1 changed files with 10 additions and 0 deletions

View File

@ -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