aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ExtensionsScriptModule
diff options
context:
space:
mode:
authorMW2007-08-29 15:39:57 +0000
committerMW2007-08-29 15:39:57 +0000
commit36fba5e7e29667544e84541d9d116cda98655f0b (patch)
treee4c1b43dcfee9d639d1dc1a540ec923437798ae2 /OpenSim/Region/ExtensionsScriptModule
parentAttempt to cut down how often objects are backed up to the database. (diff)
downloadopensim-SC-36fba5e7e29667544e84541d9d116cda98655f0b.zip
opensim-SC-36fba5e7e29667544e84541d9d116cda98655f0b.tar.gz
opensim-SC-36fba5e7e29667544e84541d9d116cda98655f0b.tar.bz2
opensim-SC-36fba5e7e29667544e84541d9d116cda98655f0b.tar.xz
Various small changes (some likely to be removed again soon)
Diffstat (limited to 'OpenSim/Region/ExtensionsScriptModule')
-rw-r--r--OpenSim/Region/ExtensionsScriptModule/ScriptManager.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/OpenSim/Region/ExtensionsScriptModule/ScriptManager.cs b/OpenSim/Region/ExtensionsScriptModule/ScriptManager.cs
index a97979f..6cacf0c 100644
--- a/OpenSim/Region/ExtensionsScriptModule/ScriptManager.cs
+++ b/OpenSim/Region/ExtensionsScriptModule/ScriptManager.cs
@@ -72,8 +72,8 @@ namespace OpenSim.Region.ExtensionsScriptModule
72 System.Console.WriteLine("Initialising Extensions Scripting Module"); 72 System.Console.WriteLine("Initialising Extensions Scripting Module");
73 m_scene = scene; 73 m_scene = scene;
74 74
75 m_scene.RegisterAPIMethod("API_CompileExtensionScript", new ModuleAPIMethod<bool, string, int>(Compile)); 75 m_scene.RegisterAPIMethod("API_CompileExtensionScript", new ModuleAPIMethod1<bool, string>(Compile));
76 m_scene.RegisterAPIMethod("API_AddExtensionScript", new ModuleAPIMethod<bool, IScript, int>(AddPreCompiledScript)); 76 m_scene.RegisterAPIMethod("API_AddExtensionScript", new ModuleAPIMethod1<bool, IScript>(AddPreCompiledScript));
77 } 77 }
78 78
79 public void PostInitialise() 79 public void PostInitialise()
@@ -91,7 +91,7 @@ namespace OpenSim.Region.ExtensionsScriptModule
91 return "ExtensionsScriptingModule"; 91 return "ExtensionsScriptingModule";
92 } 92 }
93 93
94 public bool Compile(string filename, int dummyParam) 94 public bool Compile(string filename)
95 { 95 {
96 foreach (KeyValuePair<string, IScriptCompiler> compiler in compilers) 96 foreach (KeyValuePair<string, IScriptCompiler> compiler in compilers)
97 { 97 {
@@ -110,7 +110,7 @@ namespace OpenSim.Region.ExtensionsScriptModule
110 switch (args[0]) 110 switch (args[0])
111 { 111 {
112 case "load": 112 case "load":
113 Compile(args[1], 0); 113 Compile(args[1]);
114 break; 114 break;
115 115
116 default: 116 default:
@@ -119,7 +119,7 @@ namespace OpenSim.Region.ExtensionsScriptModule
119 } 119 }
120 } 120 }
121 121
122 public bool AddPreCompiledScript(IScript script, int dummyParam) 122 public bool AddPreCompiledScript(IScript script)
123 { 123 {
124 MainLog.Instance.Verbose("Loading script " + script.Name); 124 MainLog.Instance.Verbose("Loading script " + script.Name);
125 ScriptInfo scriptInfo = new ScriptInfo(m_scene); // Since each script could potentially corrupt their access with a stray assignment, making a new one for each script. 125 ScriptInfo scriptInfo = new ScriptInfo(m_scene); // Since each script could potentially corrupt their access with a stray assignment, making a new one for each script.