From 97ec8cba62f755916d6e58adcc0d959d5bdbed3f Mon Sep 17 00:00:00 2001 From: Tedd Hansen Date: Thu, 7 Feb 2008 16:37:28 +0000 Subject: Maybe VB.Net will compile now... who knows ;) --- .../ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL') diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs index 6ea8187..ae60a47 100644 --- a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs +++ b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs @@ -58,7 +58,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL /// /// This contains number of lines WE use for header when compiling script. User will get error in line x-LinesToRemoveOnError when error occurs. /// - public int LinesToRemoveOnError = 2; + public int LinesToRemoveOnError = 3; private enumCompileType DefaultCompileLanguage; private bool WriteScriptSourceToDebugFile; private bool CompileWithDebugInformation; @@ -273,30 +273,30 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL { case enumCompileType.cs: compileScript = String.Empty + - "using OpenSim.Region.ScriptEngine.Common; using System.Collections.Generic;" + + "using OpenSim.Region.ScriptEngine.Common; using System.Collections.Generic;\r\n" + String.Empty + "namespace SecondLife { " + - String.Empty + "public class Script : OpenSim.Region.ScriptEngine.Common.LSL_BaseClass { " + + String.Empty + "public class Script : OpenSim.Region.ScriptEngine.Common.LSL_BaseClass { \r\n" + @"public Script() { } " + compileScript + - "} }\r\n\r\n"; + "} }\r\n"; break; case enumCompileType.vb: compileScript = String.Empty + "Imports OpenSim.Region.ScriptEngine.Common: Imports System.Collections.Generic: " + String.Empty + "NameSpace SecondLife:" + String.Empty + "Public Class Script: Inherits OpenSim.Region.ScriptEngine.Common.LSL_BaseClass: " + - "Public Sub New()\r\nEnd Sub: " + + "\r\nPublic Sub New()\r\nEnd Sub: " + compileScript + ":End Class :End Namespace\r\n"; break; case enumCompileType.js: compileScript = String.Empty + - "import OpenSim.Region.ScriptEngine.Common; import System.Collections.Generic;" + + "import OpenSim.Region.ScriptEngine.Common; import System.Collections.Generic;\r\n" + "namespace SecondLife { " + - "class Script : OpenSim.Region.ScriptEngine.Common.LSL_BaseClass { " + + "class Script : OpenSim.Region.ScriptEngine.Common.LSL_BaseClass { \r\n" + @"public Script() { } " + compileScript + - "} }\r\n\r\n"; + "} }\r\n"; break; } return CompileFromCSorVBText(compileScript, l); -- cgit v1.1