aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2012-07-18 21:29:12 +0100
committerJustin Clark-Casey (justincc)2012-07-18 21:29:12 +0100
commit6460e587c470361173291337ad222f48c13a10ce (patch)
tree30a15cc14b348793a16a1d4f121b64059659a6f5 /OpenSim/Region/Framework/Scenes
parentMerge branch 'master' of ssh://opensimulator.org/var/git/opensim (diff)
downloadopensim-SC_OLD-6460e587c470361173291337ad222f48c13a10ce.zip
opensim-SC_OLD-6460e587c470361173291337ad222f48c13a10ce.tar.gz
opensim-SC_OLD-6460e587c470361173291337ad222f48c13a10ce.tar.bz2
opensim-SC_OLD-6460e587c470361173291337ad222f48c13a10ce.tar.xz
Pass entire scene object in OnLoginsEnabled event rather than just the region name.
This saves listeners from having to re-retrieve the scene from their own lists, which won't work anyway if multiple regions with the same name have been allowed
Diffstat (limited to 'OpenSim/Region/Framework/Scenes')
-rw-r--r--OpenSim/Region/Framework/Scenes/EventManager.cs7
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.cs2
2 files changed, 4 insertions, 5 deletions
diff --git a/OpenSim/Region/Framework/Scenes/EventManager.cs b/OpenSim/Region/Framework/Scenes/EventManager.cs
index f92ed8e..e2380b7 100644
--- a/OpenSim/Region/Framework/Scenes/EventManager.cs
+++ b/OpenSim/Region/Framework/Scenes/EventManager.cs
@@ -496,14 +496,13 @@ namespace OpenSim.Region.Framework.Scenes
496 public delegate void RegionHeartbeatEnd(Scene scene); 496 public delegate void RegionHeartbeatEnd(Scene scene);
497 public event RegionHeartbeatEnd OnRegionHeartbeatEnd; 497 public event RegionHeartbeatEnd OnRegionHeartbeatEnd;
498 498
499 public delegate void LoginsEnabled(string regionName);
500
501 /// <summary> 499 /// <summary>
502 /// This should only fire in all circumstances if the RegionReady module is active. 500 /// This should only fire in all circumstances if the RegionReady module is active.
503 /// </summary> 501 /// </summary>
504 /// <remarks> 502 /// <remarks>
505 /// TODO: Fire this even when the RegionReady module is not active. 503 /// TODO: Fire this even when the RegionReady module is not active.
506 /// </remarks> 504 /// </remarks>
505 public delegate void LoginsEnabled(IScene scene);
507 public event LoginsEnabled OnLoginsEnabled; 506 public event LoginsEnabled OnLoginsEnabled;
508 507
509 public delegate void PrimsLoaded(Scene s); 508 public delegate void PrimsLoaded(Scene s);
@@ -2477,7 +2476,7 @@ namespace OpenSim.Region.Framework.Scenes
2477 } 2476 }
2478 } 2477 }
2479 2478
2480 public void TriggerLoginsEnabled (string regionName) 2479 public void TriggerLoginsEnabled(Scene scene)
2481 { 2480 {
2482 LoginsEnabled handler = OnLoginsEnabled; 2481 LoginsEnabled handler = OnLoginsEnabled;
2483 2482
@@ -2487,7 +2486,7 @@ namespace OpenSim.Region.Framework.Scenes
2487 { 2486 {
2488 try 2487 try
2489 { 2488 {
2490 d(regionName); 2489 d(scene);
2491 } 2490 }
2492 catch (Exception e) 2491 catch (Exception e)
2493 { 2492 {
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index de2b192..8a28ee4 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -1493,7 +1493,7 @@ namespace OpenSim.Region.Framework.Scenes
1493 { 1493 {
1494 // need to be able to tell these have changed in RegionReady 1494 // need to be able to tell these have changed in RegionReady
1495 LoginLock = false; 1495 LoginLock = false;
1496 EventManager.TriggerLoginsEnabled(RegionInfo.RegionName); 1496 EventManager.TriggerLoginsEnabled(this);
1497 } 1497 }
1498 1498
1499 // For RegionReady lockouts 1499 // For RegionReady lockouts