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

XEngine missing string constructor for LSLInteger and LSLFloat
This commit is contained in:
Charles Krinke
2008-08-16 02:28:30 +00:00
parent 328ab79b78
commit 9a6bdd9701

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