diff options
Added AddPreCompiledScript method to ScriptManager.
Done some work on lbsa71's simpleApp(hope he doesn't mind):
now have the avatar showing up and the terrain and his pulsating box (well except its not a box, as there seems to be something wrong with our PrimitiveBaseShape..DefaultBox() settings).
Also noticed a few other problems that I had to work around, so these need looking into.
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/scripting/ScriptManager.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/scripting/ScriptManager.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/scripting/ScriptManager.cs b/OpenSim/Region/Environment/Scenes/scripting/ScriptManager.cs index 736d18b..7a08735 100644 --- a/OpenSim/Region/Environment/Scenes/scripting/ScriptManager.cs +++ b/OpenSim/Region/Environment/Scenes/scripting/ScriptManager.cs | |||
@@ -89,6 +89,14 @@ namespace OpenSim.Region.Scripting | |||
89 | break; | 89 | break; |
90 | } | 90 | } |
91 | } | 91 | } |
92 | |||
93 | public void AddPreCompiledScript(IScript script) | ||
94 | { | ||
95 | MainLog.Instance.Verbose("Loading script " + script.getName()); | ||
96 | ScriptInfo scriptInfo = new ScriptInfo(scene); // Since each script could potentially corrupt their access with a stray assignment, making a new one for each script. | ||
97 | script.Initialise(scriptInfo); | ||
98 | scripts.Add(script); | ||
99 | } | ||
92 | } | 100 | } |
93 | 101 | ||
94 | interface IScriptCompiler | 102 | interface IScriptCompiler |