From b1f97f9e776ace017cf652eaa07e37ab2ab42029 Mon Sep 17 00:00:00 2001 From: Tedd Hansen Date: Sat, 2 Feb 2008 04:06:51 +0000 Subject: Temporarily disabled AllowedCompilers so all 3 compilers are allowed. Fixed bug in how code is handled, hopefully we can now run all 3 languages? :) --- .../DotNetEngine/Compiler/LSL/LSL2CSConverter.cs | 40 ++++++---------------- 1 file changed, 11 insertions(+), 29 deletions(-) (limited to 'OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL2CSConverter.cs') diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL2CSConverter.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL2CSConverter.cs index b35d562..314f3f0 100644 --- a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL2CSConverter.cs +++ b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL2CSConverter.cs @@ -289,36 +289,18 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL // Add namespace, class name and inheritance - Return = String.Empty + - "using OpenSim.Region.ScriptEngine.Common; using System.Collections.Generic;"; - //"using System; " + - //"using System.Collections.Generic; " + - //"using System.Text; " + - //"using OpenSim.Region.ScriptEngine.Common; " + - //"using integer = System.Int32; " + - //"using key = System.String; "; - - //// Make a Using out of DataTypes - //// Using integer = System.Int32; - //string _val; - //foreach (string key in DataTypes.Keys) - //{ - // DataTypes.TryGetValue(key, out _val); - // if (key != _val) - // { - // Return += "using " + key + " = " + _val + "; "; - // } - //} - - - Return += String.Empty + - "namespace SecondLife { "; - Return += String.Empty + - //"[Serializable] " + - "public class Script : OpenSim.Region.ScriptEngine.Common.LSL_BaseClass { "; - Return += @"public Script() { } "; + Return = String.Empty;// + + //"using OpenSim.Region.ScriptEngine.Common; using System.Collections.Generic;"; + + + //Return += String.Empty + + // "namespace SecondLife { "; + //Return += String.Empty + + // //"[Serializable] " + + // "public class Script : OpenSim.Region.ScriptEngine.Common.LSL_BaseClass { "; + //Return += @"public Script() { } "; Return += Script; - Return += "} }\r\n"; + //Return += "} }\r\n"; quotes.Clear(); -- cgit v1.1