diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/EventManager.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/EventManager.cs | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/EventManager.cs b/OpenSim/Region/Framework/Scenes/EventManager.cs index d326141..3ec4e59 100644 --- a/OpenSim/Region/Framework/Scenes/EventManager.cs +++ b/OpenSim/Region/Framework/Scenes/EventManager.cs | |||
@@ -393,6 +393,12 @@ namespace OpenSim.Region.Framework.Scenes | |||
393 | public delegate void RegionUp(GridRegion region); | 393 | public delegate void RegionUp(GridRegion region); |
394 | public event RegionUp OnRegionUp; | 394 | public event RegionUp OnRegionUp; |
395 | 395 | ||
396 | public delegate void LoginsEnabled(string regionName); | ||
397 | public event LoginsEnabled OnLoginsEnabled; | ||
398 | |||
399 | public delegate void PrimsLoaded(Scene s); | ||
400 | public event PrimsLoaded OnPrimsLoaded; | ||
401 | |||
396 | public class MoneyTransferArgs : EventArgs | 402 | public class MoneyTransferArgs : EventArgs |
397 | { | 403 | { |
398 | public UUID sender; | 404 | public UUID sender; |
@@ -2242,5 +2248,47 @@ namespace OpenSim.Region.Framework.Scenes | |||
2242 | } | 2248 | } |
2243 | } | 2249 | } |
2244 | } | 2250 | } |
2251 | |||
2252 | public void TriggerLoginsEnabled (string regionName) | ||
2253 | { | ||
2254 | LoginsEnabled handler = OnLoginsEnabled; | ||
2255 | |||
2256 | if ( handler != null) | ||
2257 | { | ||
2258 | foreach (LoginsEnabled d in handler.GetInvocationList()) | ||
2259 | { | ||
2260 | try | ||
2261 | { | ||
2262 | d(regionName); | ||
2263 | } | ||
2264 | catch (Exception e) | ||
2265 | { | ||
2266 | m_log.ErrorFormat("[EVENT MANAGER]: Delegate for LoginsEnabled failed - continuing {0} - {1}", | ||
2267 | e.Message, e.StackTrace); | ||
2268 | } | ||
2269 | } | ||
2270 | } | ||
2271 | } | ||
2272 | |||
2273 | public void TriggerPrimsLoaded(Scene s) | ||
2274 | { | ||
2275 | PrimsLoaded handler = OnPrimsLoaded; | ||
2276 | |||
2277 | if (handler != null) | ||
2278 | { | ||
2279 | foreach (PrimsLoaded d in handler.GetInvocationList()) | ||
2280 | { | ||
2281 | try | ||
2282 | { | ||
2283 | d(s); | ||
2284 | } | ||
2285 | catch (Exception e) | ||
2286 | { | ||
2287 | m_log.ErrorFormat("[EVENT MANAGER]: Delegate for PrimsLoaded failed - continuing {0} - {1}", | ||
2288 | e.Message, e.StackTrace); | ||
2289 | } | ||
2290 | } | ||
2291 | } | ||
2292 | } | ||
2245 | } | 2293 | } |
2246 | } | 2294 | } |