diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/EventManager.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/EventManager.cs | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/EventManager.cs b/OpenSim/Region/Framework/Scenes/EventManager.cs index 2365cfe..e88a623 100644 --- a/OpenSim/Region/Framework/Scenes/EventManager.cs +++ b/OpenSim/Region/Framework/Scenes/EventManager.cs | |||
@@ -484,6 +484,9 @@ namespace OpenSim.Region.Framework.Scenes | |||
484 | public delegate void SceneObjectPartUpdated(SceneObjectPart sop); | 484 | public delegate void SceneObjectPartUpdated(SceneObjectPart sop); |
485 | public event SceneObjectPartUpdated OnSceneObjectPartUpdated; | 485 | public event SceneObjectPartUpdated OnSceneObjectPartUpdated; |
486 | 486 | ||
487 | public delegate void ScenePresenceUpdated(ScenePresence sp); | ||
488 | public event ScenePresenceUpdated OnScenePresenceUpdated; | ||
489 | |||
487 | public delegate void RegionUp(GridRegion region); | 490 | public delegate void RegionUp(GridRegion region); |
488 | public event RegionUp OnRegionUp; | 491 | public event RegionUp OnRegionUp; |
489 | 492 | ||
@@ -2367,6 +2370,27 @@ namespace OpenSim.Region.Framework.Scenes | |||
2367 | } | 2370 | } |
2368 | } | 2371 | } |
2369 | 2372 | ||
2373 | public void TriggerScenePresenceUpdated(ScenePresence sp) | ||
2374 | { | ||
2375 | ScenePresenceUpdated handler = OnScenePresenceUpdated; | ||
2376 | if (handler != null) | ||
2377 | { | ||
2378 | foreach (ScenePresenceUpdated d in handler.GetInvocationList()) | ||
2379 | { | ||
2380 | try | ||
2381 | { | ||
2382 | d(sp); | ||
2383 | } | ||
2384 | catch (Exception e) | ||
2385 | { | ||
2386 | m_log.ErrorFormat( | ||
2387 | "[EVENT MANAGER]: Delegate for TriggerScenePresenceUpdated failed - continuing. {0} {1}", | ||
2388 | e.Message, e.StackTrace); | ||
2389 | } | ||
2390 | } | ||
2391 | } | ||
2392 | } | ||
2393 | |||
2370 | public void TriggerOnParcelPropertiesUpdateRequest(LandUpdateArgs args, | 2394 | public void TriggerOnParcelPropertiesUpdateRequest(LandUpdateArgs args, |
2371 | int local_id, IClientAPI remote_client) | 2395 | int local_id, IClientAPI remote_client) |
2372 | { | 2396 | { |