Maybe VB.Net will compile now... who knows ;)
parent
ba846e62ef
commit
97ec8cba62
|
@ -58,7 +58,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// This contains number of lines WE use for header when compiling script. User will get error in line x-LinesToRemoveOnError when error occurs.
|
/// This contains number of lines WE use for header when compiling script. User will get error in line x-LinesToRemoveOnError when error occurs.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int LinesToRemoveOnError = 2;
|
public int LinesToRemoveOnError = 3;
|
||||||
private enumCompileType DefaultCompileLanguage;
|
private enumCompileType DefaultCompileLanguage;
|
||||||
private bool WriteScriptSourceToDebugFile;
|
private bool WriteScriptSourceToDebugFile;
|
||||||
private bool CompileWithDebugInformation;
|
private bool CompileWithDebugInformation;
|
||||||
|
@ -273,30 +273,30 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL
|
||||||
{
|
{
|
||||||
case enumCompileType.cs:
|
case enumCompileType.cs:
|
||||||
compileScript = String.Empty +
|
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 + "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() { } " +
|
@"public Script() { } " +
|
||||||
compileScript +
|
compileScript +
|
||||||
"} }\r\n\r\n";
|
"} }\r\n";
|
||||||
break;
|
break;
|
||||||
case enumCompileType.vb:
|
case enumCompileType.vb:
|
||||||
compileScript = String.Empty +
|
compileScript = String.Empty +
|
||||||
"Imports OpenSim.Region.ScriptEngine.Common: Imports System.Collections.Generic: " +
|
"Imports OpenSim.Region.ScriptEngine.Common: Imports System.Collections.Generic: " +
|
||||||
String.Empty + "NameSpace SecondLife:" +
|
String.Empty + "NameSpace SecondLife:" +
|
||||||
String.Empty + "Public Class Script: Inherits OpenSim.Region.ScriptEngine.Common.LSL_BaseClass: " +
|
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 +
|
compileScript +
|
||||||
":End Class :End Namespace\r\n";
|
":End Class :End Namespace\r\n";
|
||||||
break;
|
break;
|
||||||
case enumCompileType.js:
|
case enumCompileType.js:
|
||||||
compileScript = String.Empty +
|
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 { " +
|
"namespace SecondLife { " +
|
||||||
"class Script : OpenSim.Region.ScriptEngine.Common.LSL_BaseClass { " +
|
"class Script : OpenSim.Region.ScriptEngine.Common.LSL_BaseClass { \r\n" +
|
||||||
@"public Script() { } " +
|
@"public Script() { } " +
|
||||||
compileScript +
|
compileScript +
|
||||||
"} }\r\n\r\n";
|
"} }\r\n";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return CompileFromCSorVBText(compileScript, l);
|
return CompileFromCSorVBText(compileScript, l);
|
||||||
|
|
Loading…
Reference in New Issue