aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/Scene.cs
diff options
context:
space:
mode:
authorMelanie Thielker2010-05-04 18:31:52 +0200
committerMelanie2010-05-04 16:11:06 +0100
commit9cf0077bf9792833ec59b2d3ff69663c4dae1bbd (patch)
tree123dd027642adaadd474e36e5b84cf5805dfe513 /OpenSim/Region/Framework/Scenes/Scene.cs
parentAllow reloading of estate settings into a running region. Move sun update (diff)
downloadopensim-SC_OLD-9cf0077bf9792833ec59b2d3ff69663c4dae1bbd.zip
opensim-SC_OLD-9cf0077bf9792833ec59b2d3ff69663c4dae1bbd.tar.gz
opensim-SC_OLD-9cf0077bf9792833ec59b2d3ff69663c4dae1bbd.tar.bz2
opensim-SC_OLD-9cf0077bf9792833ec59b2d3ff69663c4dae1bbd.tar.xz
Add "reload estate" command to sims
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index da18629..1a46837 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -646,6 +646,10 @@ namespace OpenSim.Region.Framework.Scenes
646 } 646 }
647 } 647 }
648 648
649 MainConsole.Instance.Commands.AddCommand("region", false, "reload estate",
650 "reload estate",
651 "Reload the estate data", HandleReloadEstate);
652
649 //Bind Storage Manager functions to some land manager functions for this scene 653 //Bind Storage Manager functions to some land manager functions for this scene
650 EventManager.OnLandObjectAdded += 654 EventManager.OnLandObjectAdded +=
651 new EventManager.LandObjectAdded(m_storageManager.DataStore.StoreLandObject); 655 new EventManager.LandObjectAdded(m_storageManager.DataStore.StoreLandObject);
@@ -5121,5 +5125,15 @@ namespace OpenSim.Region.Framework.Scenes
5121 sun); 5125 sun);
5122 } 5126 }
5123 } 5127 }
5128
5129 private void HandleReloadEstate(string module, string[] cmd)
5130 {
5131 if (MainConsole.Instance.ConsoleScene == null ||
5132 (MainConsole.Instance.ConsoleScene is Scene &&
5133 (Scene)MainConsole.Instance.ConsoleScene == this))
5134 {
5135 ReloadEstateData();
5136 }
5137 }
5124 } 5138 }
5125} 5139}