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.
This commit is contained in:
MW
2007-07-14 13:18:02 +00:00
parent d879c6e8fc
commit a04602d9c1
9 changed files with 126 additions and 11 deletions

View File

@@ -89,6 +89,14 @@ namespace OpenSim.Region.Scripting
break;
}
}
public void AddPreCompiledScript(IScript script)
{
MainLog.Instance.Verbose("Loading script " + script.getName());
ScriptInfo scriptInfo = new ScriptInfo(scene); // Since each script could potentially corrupt their access with a stray assignment, making a new one for each script.
script.Initialise(scriptInfo);
scripts.Add(script);
}
}
interface IScriptCompiler