aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/EventManager.cs
diff options
context:
space:
mode:
authorMelanie2012-08-15 18:22:16 +0200
committerMelanie2012-08-15 18:58:39 +0100
commitc27ff70d5c9c7f91ff63b197359de84f7508ec60 (patch)
tree9c32da6e9bd392bc0a254f87e03d7cf1d6858ef2 /OpenSim/Region/Framework/Scenes/EventManager.cs
parentFix and finish the extra parameters storage system for MySQL (diff)
downloadopensim-SC_OLD-c27ff70d5c9c7f91ff63b197359de84f7508ec60.zip
opensim-SC_OLD-c27ff70d5c9c7f91ff63b197359de84f7508ec60.tar.gz
opensim-SC_OLD-c27ff70d5c9c7f91ff63b197359de84f7508ec60.tar.bz2
opensim-SC_OLD-c27ff70d5c9c7f91ff63b197359de84f7508ec60.tar.xz
Add support for the extra params to scene and the event manager
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/EventManager.cs')
-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}