diff options
author | Tedd Hansen | 2008-02-24 16:41:56 +0000 |
---|---|---|
committer | Tedd Hansen | 2008-02-24 16:41:56 +0000 |
commit | 8af64c979fcc993615243d66f03903173ab933b0 (patch) | |
tree | 2eb740170947f48af679b673ac50832f11411f30 /OpenSim/Region/ScriptEngine/DotNetEngine/Compiler | |
parent | Forgot to change what class compiled scripts must inherit from to get their c... (diff) | |
download | opensim-SC-8af64c979fcc993615243d66f03903173ab933b0.zip opensim-SC-8af64c979fcc993615243d66f03903173ab933b0.tar.gz opensim-SC-8af64c979fcc993615243d66f03903173ab933b0.tar.bz2 opensim-SC-8af64c979fcc993615243d66f03903173ab933b0.tar.xz |
By now you all have learned that when I'm committing scripting usually doesn't work, so no big surprise. :)
Modified baseclass for compiled script to incorp new OSSL commands class and renamed it to follow standards and all that. Scripts may work again. :)
Diffstat (limited to 'OpenSim/Region/ScriptEngine/DotNetEngine/Compiler')
-rw-r--r-- | OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs index fe30119..5cd3d94 100644 --- a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs +++ b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/Compiler.cs | |||
@@ -289,7 +289,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL | |||
289 | compileScript = String.Empty + | 289 | compileScript = String.Empty + |
290 | "import OpenSim.Region.ScriptEngine.Common; import System.Collections.Generic;\r\n" + | 290 | "import OpenSim.Region.ScriptEngine.Common; import System.Collections.Generic;\r\n" + |
291 | "package SecondLife {\r\n" + | 291 | "package SecondLife {\r\n" + |
292 | "class Script extends OpenSim.Region.ScriptEngine.Common.BuilIn_Commands { \r\n" + | 292 | "class Script extends OpenSim.Region.ScriptEngine.Common.BuiltIn_Commands_BaseClass { \r\n" + |
293 | compileScript + | 293 | compileScript + |
294 | "} }\r\n"; | 294 | "} }\r\n"; |
295 | return compileScript; | 295 | return compileScript; |
@@ -300,7 +300,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL | |||
300 | compileScript = String.Empty + | 300 | compileScript = String.Empty + |
301 | "using OpenSim.Region.ScriptEngine.Common; using System.Collections.Generic;\r\n" + | 301 | "using OpenSim.Region.ScriptEngine.Common; using System.Collections.Generic;\r\n" + |
302 | String.Empty + "namespace SecondLife { " + | 302 | String.Empty + "namespace SecondLife { " + |
303 | String.Empty + "public class Script : OpenSim.Region.ScriptEngine.Common.BuilIn_Commands { \r\n" + | 303 | String.Empty + "public class Script : OpenSim.Region.ScriptEngine.Common.BuiltIn_Commands_BaseClass { \r\n" + |
304 | @"public Script() { } " + | 304 | @"public Script() { } " + |
305 | compileScript + | 305 | compileScript + |
306 | "} }\r\n"; | 306 | "} }\r\n"; |
@@ -312,7 +312,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL | |||
312 | compileScript = String.Empty + | 312 | compileScript = String.Empty + |
313 | "Imports OpenSim.Region.ScriptEngine.Common: Imports System.Collections.Generic: " + | 313 | "Imports OpenSim.Region.ScriptEngine.Common: Imports System.Collections.Generic: " + |
314 | String.Empty + "NameSpace SecondLife:" + | 314 | String.Empty + "NameSpace SecondLife:" + |
315 | String.Empty + "Public Class Script: Inherits OpenSim.Region.ScriptEngine.Common.BuilIn_Commands: " + | 315 | String.Empty + "Public Class Script: Inherits OpenSim.Region.ScriptEngine.Common.BuiltIn_Commands_BaseClass: " + |
316 | "\r\nPublic Sub New()\r\nEnd Sub: " + | 316 | "\r\nPublic Sub New()\r\nEnd Sub: " + |
317 | compileScript + | 317 | compileScript + |
318 | ":End Class :End Namespace\r\n"; | 318 | ":End Class :End Namespace\r\n"; |