diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Instance/ScriptSerializer.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Instance/ScriptSerializer.cs | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptSerializer.cs b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptSerializer.cs index 0ec039b..c06960b 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptSerializer.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptSerializer.cs | |||
@@ -194,6 +194,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance | |||
194 | } | 194 | } |
195 | } | 195 | } |
196 | 196 | ||
197 | if (instance.MinEventDelay > 0.0) | ||
198 | { | ||
199 | XmlElement eventDelay = xmldoc.CreateElement("", "MinEventDelay", ""); | ||
200 | eventDelay.AppendChild(xmldoc.CreateTextNode(instance.MinEventDelay.ToString())); | ||
201 | rootElement.AppendChild(eventDelay); | ||
202 | } | ||
203 | |||
197 | return xmldoc.InnerXml; | 204 | return xmldoc.InnerXml; |
198 | } | 205 | } |
199 | 206 | ||
@@ -380,8 +387,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance | |||
380 | } | 387 | } |
381 | } | 388 | } |
382 | break; | 389 | break; |
383 | } | 390 | case "MinEventDelay": |
391 | double minEventDelay = 0.0; | ||
392 | double.TryParse(part.InnerText, out minEventDelay); | ||
393 | instance.MinEventDelay = minEventDelay; | ||
394 | break; | ||
384 | } | 395 | } |
396 | } | ||
385 | } | 397 | } |
386 | } | 398 | } |
387 | 399 | ||