Yengine:save minEventDelay in script state
parent
72c472f988
commit
0f574d432d
|
@ -115,6 +115,15 @@ namespace OpenSim.Region.ScriptEngine.Yengine
|
||||||
m_RunOnePhase = "GetExecutionState D";
|
m_RunOnePhase = "GetExecutionState D";
|
||||||
CheckRunLockInvariants(true);
|
CheckRunLockInvariants(true);
|
||||||
|
|
||||||
|
if (m_minEventDelay != 0.0)
|
||||||
|
{
|
||||||
|
XmlElement minEventDelayN = doc.CreateElement("", "mEvtDly", "");
|
||||||
|
minEventDelayN.AppendChild(doc.CreateTextNode(m_minEventDelay.ToString()));
|
||||||
|
scriptStateN.AppendChild(minEventDelayN);
|
||||||
|
m_RunOnePhase = "GetExecutionState D";
|
||||||
|
CheckRunLockInvariants(true);
|
||||||
|
}
|
||||||
|
|
||||||
// More misc data.
|
// More misc data.
|
||||||
XmlNode permissionsN = doc.CreateElement("", "Permissions", "");
|
XmlNode permissionsN = doc.CreateElement("", "Permissions", "");
|
||||||
scriptStateN.AppendChild(permissionsN);
|
scriptStateN.AppendChild(permissionsN);
|
||||||
|
|
|
@ -527,6 +527,11 @@ namespace OpenSim.Region.ScriptEngine.Yengine
|
||||||
XmlElement doGblInitN = (XmlElement)scriptStateN.SelectSingleNode("DoGblInit");
|
XmlElement doGblInitN = (XmlElement)scriptStateN.SelectSingleNode("DoGblInit");
|
||||||
doGblInit = bool.Parse(doGblInitN.InnerText);
|
doGblInit = bool.Parse(doGblInitN.InnerText);
|
||||||
|
|
||||||
|
double minEventDelay = 0.0;
|
||||||
|
XmlElement minEventDelayN = (XmlElement)scriptStateN.SelectSingleNode("mEvtDly");
|
||||||
|
if(minEventDelayN != null)
|
||||||
|
minEventDelay = Double.Parse(minEventDelayN.InnerText);
|
||||||
|
|
||||||
// get values used by stuff like llDetectedGrab, etc.
|
// get values used by stuff like llDetectedGrab, etc.
|
||||||
DetectParams[] detParams = RestoreDetectParams(scriptStateN.SelectSingleNode("DetectArray"));
|
DetectParams[] detParams = RestoreDetectParams(scriptStateN.SelectSingleNode("DetectArray"));
|
||||||
|
|
||||||
|
@ -576,6 +581,8 @@ namespace OpenSim.Region.ScriptEngine.Yengine
|
||||||
AsyncCommandManager.CreateFromData(m_Engine,
|
AsyncCommandManager.CreateFromData(m_Engine,
|
||||||
m_LocalID, m_ItemID, m_Part.UUID,
|
m_LocalID, m_ItemID, m_Part.UUID,
|
||||||
pluginData);
|
pluginData);
|
||||||
|
|
||||||
|
MinEventDelay = minEventDelay;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void processXstate(XmlDocument doc)
|
private void processXstate(XmlDocument doc)
|
||||||
|
@ -919,6 +926,8 @@ namespace OpenSim.Region.ScriptEngine.Yengine
|
||||||
|
|
||||||
AsyncCommandManager.CreateFromData(m_Engine,
|
AsyncCommandManager.CreateFromData(m_Engine,
|
||||||
m_LocalID, m_ItemID, m_Part.UUID, pluginData);
|
m_LocalID, m_ItemID, m_Part.UUID, pluginData);
|
||||||
|
|
||||||
|
MinEventDelay = minEventDelay;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void getvarNames(Dictionary<int, string> s, Dictionary<string, int> d)
|
private static void getvarNames(Dictionary<int, string> s, Dictionary<string, int> d)
|
||||||
|
|
Loading…
Reference in New Issue