aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/DotNetEngine
diff options
context:
space:
mode:
authorCharles Krinke2008-06-05 13:54:20 +0000
committerCharles Krinke2008-06-05 13:54:20 +0000
commit3a4b54adaa25de61aee04f71a88de86535b35670 (patch)
tree8771d4c25acc93786a550b660e37b4af3496b2b3 /OpenSim/Region/ScriptEngine/DotNetEngine
parent* This sends collision events to the script engine. (diff)
downloadopensim-SC_OLD-3a4b54adaa25de61aee04f71a88de86535b35670.zip
opensim-SC_OLD-3a4b54adaa25de61aee04f71a88de86535b35670.tar.gz
opensim-SC_OLD-3a4b54adaa25de61aee04f71a88de86535b35670.tar.bz2
opensim-SC_OLD-3a4b54adaa25de61aee04f71a88de86535b35670.tar.xz
Mantis#1451. Thank you kindly, Mikem for a patch that addresses:
LSL scripts in which a float type is cast to a string or a string type is cast to a float do not compile. When the script is translated from LSL to C#, the LSL float type is translated into double. There is no string <-> double cast in C#, so compilation fails. There is a LSLFloat type, however it seems unfinished and is not used. I am attaching a patch that implements the LSLFloat type. I have also added two methods to the LSLString type to facilitate float <-> string casts.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/DotNetEngine')
-rw-r--r--OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL2CSConverter.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL2CSConverter.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL2CSConverter.cs
index 583bb93..db73f6b 100644
--- a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL2CSConverter.cs
+++ b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL2CSConverter.cs
@@ -52,7 +52,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL
52 // Only the types we need to convert 52 // Only the types we need to convert
53 dataTypes.Add("void", "void"); 53 dataTypes.Add("void", "void");
54 dataTypes.Add("integer", "LSL_Types.LSLInteger"); 54 dataTypes.Add("integer", "LSL_Types.LSLInteger");
55 dataTypes.Add("float", "double"); 55 dataTypes.Add("float", "LSL_Types.LSLFloat");
56 dataTypes.Add("string", "LSL_Types.LSLString"); 56 dataTypes.Add("string", "LSL_Types.LSLString");
57 dataTypes.Add("key", "LSL_Types.LSLString"); 57 dataTypes.Add("key", "LSL_Types.LSLString");
58 dataTypes.Add("vector", "LSL_Types.Vector3"); 58 dataTypes.Add("vector", "LSL_Types.Vector3");