aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorMW2007-11-14 22:03:11 +0000
committerMW2007-11-14 22:03:11 +0000
commitb42dfff4b811312ebc5353b81056d4685ae3f126 (patch)
treec946391c4aedb9a26583bccc633d97b7254a6133 /OpenSim/Region
parentclean up most of my mess on terrain. Someone on .NET please test and make (diff)
downloadopensim-SC_OLD-b42dfff4b811312ebc5353b81056d4685ae3f126.zip
opensim-SC_OLD-b42dfff4b811312ebc5353b81056d4685ae3f126.tar.gz
opensim-SC_OLD-b42dfff4b811312ebc5353b81056d4685ae3f126.tar.bz2
opensim-SC_OLD-b42dfff4b811312ebc5353b81056d4685ae3f126.tar.xz
Added "show regions" console command that displays the list of regions in that instance and their X , Y locations. (as requested/suggested by ckrinke)
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/Application/OpenSimMain.cs13
1 files changed, 10 insertions, 3 deletions
diff --git a/OpenSim/Region/Application/OpenSimMain.cs b/OpenSim/Region/Application/OpenSimMain.cs
index 06dc900..501f14e 100644
--- a/OpenSim/Region/Application/OpenSimMain.cs
+++ b/OpenSim/Region/Application/OpenSimMain.cs
@@ -110,7 +110,7 @@ namespace OpenSim
110 : base() 110 : base()
111 { 111 {
112 IConfig startupConfig = configSource.Configs["Startup"]; 112 IConfig startupConfig = configSource.Configs["Startup"];
113 113
114 AddinManager.Initialize("."); 114 AddinManager.Initialize(".");
115 AddinManager.Registry.Update(null); 115 AddinManager.Registry.Update(null);
116 116
@@ -642,7 +642,7 @@ namespace OpenSim
642 string regName = CombineParams(cmdparams, 0); 642 string regName = CombineParams(cmdparams, 0);
643 643
644 Scene killScene; 644 Scene killScene;
645 if(m_sceneManager.TryGetScene(regName, out killScene)) 645 if (m_sceneManager.TryGetScene(regName, out killScene))
646 { 646 {
647 if (m_sceneManager.CurrentScene.RegionInfo.RegionID == killScene.RegionInfo.RegionID) 647 if (m_sceneManager.CurrentScene.RegionInfo.RegionID == killScene.RegionInfo.RegionID)
648 { 648 {
@@ -650,7 +650,7 @@ namespace OpenSim
650 } 650 }
651 m_regionData.Remove(killScene.RegionInfo); 651 m_regionData.Remove(killScene.RegionInfo);
652 m_sceneManager.CloseScene(killScene); 652 m_sceneManager.CloseScene(killScene);
653 653
654 } 654 }
655 break; 655 break;
656 656
@@ -768,6 +768,13 @@ namespace OpenSim
768 m_log.Error("Shared Module: " + module.Name); 768 m_log.Error("Shared Module: " + module.Name);
769 } 769 }
770 break; 770 break;
771
772 case "regions":
773 m_sceneManager.ForEachScene(delegate(Scene scene)
774 {
775 Console.WriteLine("Region Name: " + scene.RegionInfo.RegionName + " , Region XLoc: " + scene.RegionInfo.RegionLocX + " , Region YLoc: " + scene.RegionInfo.RegionLocY);
776 });
777 break;
771 } 778 }
772 } 779 }
773 780