From 664e8a464e4608afeb590a3330ccc69e7988138b Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Sun, 9 Nov 2008 19:30:40 +0000 Subject: Script region crossing. This has not user functionality, but lays all the groundwork. --- OpenSim/Region/ScriptEngine/XEngine/XEngine.cs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'OpenSim/Region/ScriptEngine/XEngine') diff --git a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs index 221562e..6584bb3 100644 --- a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs +++ b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs @@ -333,7 +333,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine get { return false; } } - public void OnRezScript(uint localID, UUID itemID, string script, int startParam, bool postOnRez, string engine) + public void OnRezScript(uint localID, UUID itemID, string script, int startParam, bool postOnRez, string engine, int stateSource) { List engines = new List(m_Scene.RequestModuleInterfaces()); @@ -388,7 +388,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine if (engine != ScriptEngineName) return; - Object[] parms = new Object[]{localID, itemID, script, startParam, postOnRez}; + Object[] parms = new Object[]{localID, itemID, script, startParam, postOnRez, (StateSource)stateSource}; lock (m_CompileQueue) { @@ -471,6 +471,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine string script =(string)p[2]; int startParam = (int)p[3]; bool postOnRez = (bool)p[4]; + StateSource stateSource = (StateSource)p[5]; // Get the asset ID of the script, so we can check if we // already have it. @@ -505,8 +506,6 @@ namespace OpenSim.Region.ScriptEngine.XEngine { assembly = m_Compiler.PerformScriptCompile(script, assetID.ToString()); - if (presence != null && (!postOnRez)) - presence.ControllingClient.SendAgentAlertMessage("Compile successful", false); } catch (Exception e) { @@ -584,7 +583,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine m_AppDomains[appDomain], part.ParentGroup.RootPart.Name, item.Name, startParam, postOnRez, - StateSource.NewRez, m_MaxScriptQueue); + stateSource, m_MaxScriptQueue); m_log.DebugFormat("[XEngine] Loaded script {0}.{1}", part.ParentGroup.RootPart.Name, item.Name); -- cgit v1.1