aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/EventManager.cs
diff options
context:
space:
mode:
authorMelanie2012-02-03 08:47:26 +0000
committerMelanie2012-02-03 08:47:26 +0000
commit0dbfa704431b60950911f70ab91289c7362d5a02 (patch)
tree5f01f84410e5467ecb306d4d61db6af26f4919c9 /OpenSim/Region/Framework/Scenes/EventManager.cs
parentMerge branch 'master' into careminster (diff)
parentCommenting out new event until I can fix OpenSim tests. Currently, testing ob... (diff)
downloadopensim-SC-0dbfa704431b60950911f70ab91289c7362d5a02.zip
opensim-SC-0dbfa704431b60950911f70ab91289c7362d5a02.tar.gz
opensim-SC-0dbfa704431b60950911f70ab91289c7362d5a02.tar.bz2
opensim-SC-0dbfa704431b60950911f70ab91289c7362d5a02.tar.xz
Merge branch 'master' into careminster
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/EventManager.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/EventManager.cs48
1 files changed, 48 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/EventManager.cs b/OpenSim/Region/Framework/Scenes/EventManager.cs
index 74d9e60..57db4d6 100644
--- a/OpenSim/Region/Framework/Scenes/EventManager.cs
+++ b/OpenSim/Region/Framework/Scenes/EventManager.cs
@@ -402,12 +402,18 @@ namespace OpenSim.Region.Framework.Scenes
402 public event SceneObjectPartCopyDelegate OnSceneObjectPartCopy; 402 public event SceneObjectPartCopyDelegate OnSceneObjectPartCopy;
403 public delegate void SceneObjectPartCopyDelegate(SceneObjectPart copy, SceneObjectPart original, bool userExposed); 403 public delegate void SceneObjectPartCopyDelegate(SceneObjectPart copy, SceneObjectPart original, bool userExposed);
404 404
405 public delegate void SceneObjectPartUpdated(SceneObjectPart sop);
406 public event SceneObjectPartUpdated OnSceneObjectPartUpdated;
407
405 public delegate void RegionUp(GridRegion region); 408 public delegate void RegionUp(GridRegion region);
406 public event RegionUp OnRegionUp; 409 public event RegionUp OnRegionUp;
407 410
408 public delegate void RegionStarted(Scene scene); 411 public delegate void RegionStarted(Scene scene);
409 public event RegionStarted OnRegionStarted; 412 public event RegionStarted OnRegionStarted;
410 413
414 public delegate void RegionHeartbeatEnd(Scene scene);
415 public event RegionHeartbeatEnd OnRegionHeartbeatEnd;
416
411 public delegate void LoginsEnabled(string regionName); 417 public delegate void LoginsEnabled(string regionName);
412 public event LoginsEnabled OnLoginsEnabled; 418 public event LoginsEnabled OnLoginsEnabled;
413 419
@@ -2227,6 +2233,27 @@ namespace OpenSim.Region.Framework.Scenes
2227 } 2233 }
2228 } 2234 }
2229 2235
2236 public void TriggerSceneObjectPartUpdated(SceneObjectPart sop)
2237 {
2238 SceneObjectPartUpdated handler = OnSceneObjectPartUpdated;
2239 if (handler != null)
2240 {
2241 foreach (SceneObjectPartUpdated d in handler.GetInvocationList())
2242 {
2243 try
2244 {
2245 d(sop);
2246 }
2247 catch (Exception e)
2248 {
2249 m_log.ErrorFormat(
2250 "[EVENT MANAGER]: Delegate for TriggerSceneObjectPartUpdated failed - continuing. {0} {1}",
2251 e.Message, e.StackTrace);
2252 }
2253 }
2254 }
2255 }
2256
2230 public void TriggerOnParcelPropertiesUpdateRequest(LandUpdateArgs args, 2257 public void TriggerOnParcelPropertiesUpdateRequest(LandUpdateArgs args,
2231 int local_id, IClientAPI remote_client) 2258 int local_id, IClientAPI remote_client)
2232 { 2259 {
@@ -2291,6 +2318,27 @@ namespace OpenSim.Region.Framework.Scenes
2291 } 2318 }
2292 } 2319 }
2293 2320
2321 public void TriggerRegionHeartbeatEnd(Scene scene)
2322 {
2323 RegionHeartbeatEnd handler = OnRegionHeartbeatEnd;
2324
2325 if (handler != null)
2326 {
2327 foreach (RegionHeartbeatEnd d in handler.GetInvocationList())
2328 {
2329 try
2330 {
2331 d(scene);
2332 }
2333 catch (Exception e)
2334 {
2335 m_log.ErrorFormat("[EVENT MANAGER]: Delegate for OnRegionHeartbeatEnd failed - continuing {0} - {1}",
2336 e.Message, e.StackTrace);
2337 }
2338 }
2339 }
2340 }
2341
2294 public void TriggerLoginsEnabled (string regionName) 2342 public void TriggerLoginsEnabled (string regionName)
2295 { 2343 {
2296 LoginsEnabled handler = OnLoginsEnabled; 2344 LoginsEnabled handler = OnLoginsEnabled;