diff options
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs index e0a4014..bf66b12 100644 --- a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs +++ b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs | |||
@@ -1396,6 +1396,12 @@ namespace OpenSim.Region.ScriptEngine.Shared | |||
1396 | string s = String.Format(Culture.FormatProvider, "{0:0.000000}", f.value); | 1396 | string s = String.Format(Culture.FormatProvider, "{0:0.000000}", f.value); |
1397 | m_string=s; | 1397 | m_string=s; |
1398 | } | 1398 | } |
1399 | |||
1400 | public LSLString(int i) | ||
1401 | { | ||
1402 | string s = String.Format("{0}", i); | ||
1403 | m_string = s; | ||
1404 | } | ||
1399 | 1405 | ||
1400 | public LSLString(LSLInteger i) | 1406 | public LSLString(LSLInteger i) |
1401 | { | 1407 | { |
@@ -1469,6 +1475,11 @@ namespace OpenSim.Region.ScriptEngine.Shared | |||
1469 | { | 1475 | { |
1470 | return new LSLString(d); | 1476 | return new LSLString(d); |
1471 | } | 1477 | } |
1478 | |||
1479 | static public explicit operator LSLString(int i) | ||
1480 | { | ||
1481 | return new LSLString(i); | ||
1482 | } | ||
1472 | 1483 | ||
1473 | public static explicit operator LSLString(LSLFloat f) | 1484 | public static explicit operator LSLString(LSLFloat f) |
1474 | { | 1485 | { |