aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/EventManager.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Framework/Scenes/EventManager.cs23
1 files changed, 23 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/EventManager.cs b/OpenSim/Region/Framework/Scenes/EventManager.cs
index 6dea2f0..4d65be9 100644
--- a/OpenSim/Region/Framework/Scenes/EventManager.cs
+++ b/OpenSim/Region/Framework/Scenes/EventManager.cs
@@ -213,6 +213,9 @@ namespace OpenSim.Region.Framework.Scenes
213 /// </remarks> 213 /// </remarks>
214 public event NewScript OnNewScript; 214 public event NewScript OnNewScript;
215 215
216 public delegate void ExtraSettingChangedDelegate(Scene scene, string name, string value);
217 public event ExtraSettingChangedDelegate OnExtraSettingChanged;
218
216 public virtual void TriggerNewScript(UUID clientID, SceneObjectPart part, UUID itemID) 219 public virtual void TriggerNewScript(UUID clientID, SceneObjectPart part, UUID itemID)
217 { 220 {
218 NewScript handlerNewScript = OnNewScript; 221 NewScript handlerNewScript = OnNewScript;
@@ -2591,5 +2594,25 @@ namespace OpenSim.Region.Framework.Scenes
2591 } 2594 }
2592 } 2595 }
2593 2596
2597 public void TriggerExtraSettingChanged(Scene scene, string name, string val)
2598 {
2599 ExtraSettingChangedDelegate handler = OnExtraSettingChanged;
2600
2601 if (handler != null)
2602 {
2603 foreach (ExtraSettingChangedDelegate d in handler.GetInvocationList())
2604 {
2605 try
2606 {
2607 d(scene, name, val);
2608 }
2609 catch (Exception e)
2610 {
2611 m_log.ErrorFormat("[EVENT MANAGER]: Delegate for ExtraSettingChanged failed - continuing {0} - {1}",
2612 e.Message, e.StackTrace);
2613 }
2614 }
2615 }
2616 }
2594 } 2617 }
2595} 2618}