diff options
author | Tedd Hansen | 2007-09-15 14:22:38 +0000 |
---|---|---|
committer | Tedd Hansen | 2007-09-15 14:22:38 +0000 |
commit | ed68a3894cc82e8e9bca6bcbf621c5297538c708 (patch) | |
tree | eb83e22f0be47bb817a51a0ee5a283f3a3e97ad3 /OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL2CSConverter.cs | |
parent | Hopefully fixed the build error that I introduced with my last commit. (diff) | |
download | opensim-SC-ed68a3894cc82e8e9bca6bcbf621c5297538c708.zip opensim-SC-ed68a3894cc82e8e9bca6bcbf621c5297538c708.tar.gz opensim-SC-ed68a3894cc82e8e9bca6bcbf621c5297538c708.tar.bz2 opensim-SC-ed68a3894cc82e8e9bca6bcbf621c5297538c708.tar.xz |
Now loading "OpenSim.Region.ScriptEngine.Common.dll" into scripts AppDomain and "using OpenSim.Region.ScriptEngine.Common;" at start of script when converted from LSL. Vectors and rotations now works.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL2CSConverter.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL2CSConverter.cs | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL2CSConverter.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL2CSConverter.cs index c70448b..ec6b962 100644 --- a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL2CSConverter.cs +++ b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL2CSConverter.cs | |||
@@ -18,8 +18,8 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL | |||
18 | dataTypes.Add("integer", "int"); | 18 | dataTypes.Add("integer", "int"); |
19 | dataTypes.Add("float", "double"); | 19 | dataTypes.Add("float", "double"); |
20 | dataTypes.Add("string", "string"); | 20 | dataTypes.Add("string", "string"); |
21 | dataTypes.Add("key", "string"); | 21 | dataTypes.Add("key", "string"); |
22 | dataTypes.Add("vector", "LSL_Types.Vector3"); | 22 | dataTypes.Add("vector", "LSL_Types.Vector3"); |
23 | dataTypes.Add("rotation", "LSL_Types.Quaternion"); | 23 | dataTypes.Add("rotation", "LSL_Types.Quaternion"); |
24 | dataTypes.Add("list", "list"); | 24 | dataTypes.Add("list", "list"); |
25 | dataTypes.Add("null", "null"); | 25 | dataTypes.Add("null", "null"); |
@@ -225,9 +225,10 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL | |||
225 | } | 225 | } |
226 | 226 | ||
227 | 227 | ||
228 | // Add namespace, class name and inheritance | 228 | // Add namespace, class name and inheritance |
229 | 229 | ||
230 | Return = "";// + | 230 | Return = "" + |
231 | "using OpenSim.Region.ScriptEngine.Common;"; | ||
231 | //"using System; " + | 232 | //"using System; " + |
232 | //"using System.Collections.Generic; " + | 233 | //"using System.Collections.Generic; " + |
233 | //"using System.Text; " + | 234 | //"using System.Text; " + |