diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs index d15aa81..8326e16 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 | |||
1254 | value = (int)d; | 1254 | value = (int)d; |
1255 | } | 1255 | } |
1256 | 1256 | ||
1257 | public LSLInteger(string s) | ||
1258 | { | ||
1259 | value = (int)double.Parse(s); | ||
1260 | } | ||
1261 | |||
1257 | #endregion | 1262 | #endregion |
1258 | 1263 | ||
1259 | #region Operators | 1264 | #region Operators |
@@ -1451,6 +1456,11 @@ namespace OpenSim.Region.ScriptEngine.Shared | |||
1451 | this.value = d; | 1456 | this.value = d; |
1452 | } | 1457 | } |
1453 | 1458 | ||
1459 | public LSLFloat(string s) | ||
1460 | { | ||
1461 | this.value = double.Parse(s); | ||
1462 | } | ||
1463 | |||
1454 | #endregion | 1464 | #endregion |
1455 | 1465 | ||
1456 | #region Operators | 1466 | #region Operators |