diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Common/LSL_Types.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs b/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs index 3b317ac..581b820 100644 --- a/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs +++ b/OpenSim/Region/ScriptEngine/Common/LSL_Types.cs | |||
@@ -1351,6 +1351,11 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
1351 | value = (int)d; | 1351 | value = (int)d; |
1352 | } | 1352 | } |
1353 | 1353 | ||
1354 | public LSLInteger(string s) | ||
1355 | { | ||
1356 | value = (int)double.Parse(s); | ||
1357 | } | ||
1358 | |||
1354 | #endregion | 1359 | #endregion |
1355 | 1360 | ||
1356 | #region Operators | 1361 | #region Operators |
@@ -1548,6 +1553,11 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
1548 | this.value = d; | 1553 | this.value = d; |
1549 | } | 1554 | } |
1550 | 1555 | ||
1556 | public LSLFloat(string s) | ||
1557 | { | ||
1558 | this.value = double.Parse(s); | ||
1559 | } | ||
1560 | |||
1551 | #endregion | 1561 | #endregion |
1552 | 1562 | ||
1553 | #region Operators | 1563 | #region Operators |