diff options
author | Adam Frisby | 2008-04-21 07:09:17 +0000 |
---|---|---|
committer | Adam Frisby | 2008-04-21 07:09:17 +0000 |
commit | fef3b3689492dea63693c964bcdbec9f5137eb5e (patch) | |
tree | 7791eef001d85d3e1de863a68f26ff9434d062ca /OpenSim/ApplicationPlugins/LoadRegions | |
parent | * Terrain Module code has been reformatted to comply with guidelines. (diff) | |
download | opensim-SC_OLD-fef3b3689492dea63693c964bcdbec9f5137eb5e.zip opensim-SC_OLD-fef3b3689492dea63693c964bcdbec9f5137eb5e.tar.gz opensim-SC_OLD-fef3b3689492dea63693c964bcdbec9f5137eb5e.tar.bz2 opensim-SC_OLD-fef3b3689492dea63693c964bcdbec9f5137eb5e.tar.xz |
* Optimised using statements and namespace references across entire project (this took a while to run).
Diffstat (limited to 'OpenSim/ApplicationPlugins/LoadRegions')
-rw-r--r-- | OpenSim/ApplicationPlugins/LoadRegions/LoadRegionsPlugin.cs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/OpenSim/ApplicationPlugins/LoadRegions/LoadRegionsPlugin.cs b/OpenSim/ApplicationPlugins/LoadRegions/LoadRegionsPlugin.cs index 62cd41d..48e988c 100644 --- a/OpenSim/ApplicationPlugins/LoadRegions/LoadRegionsPlugin.cs +++ b/OpenSim/ApplicationPlugins/LoadRegions/LoadRegionsPlugin.cs | |||
@@ -25,9 +25,11 @@ | |||
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System.Reflection; | ||
29 | using System.Threading; | ||
30 | using log4net; | ||
28 | using Mono.Addins; | 31 | using Mono.Addins; |
29 | using OpenSim.Framework; | 32 | using OpenSim.Framework; |
30 | using OpenSim.Framework.Console; | ||
31 | using OpenSim.Framework.RegionLoader.Filesystem; | 33 | using OpenSim.Framework.RegionLoader.Filesystem; |
32 | using OpenSim.Framework.RegionLoader.Web; | 34 | using OpenSim.Framework.RegionLoader.Web; |
33 | 35 | ||
@@ -39,7 +41,7 @@ namespace OpenSim.ApplicationPlugins.LoadRegions | |||
39 | [Extension("/OpenSim/Startup")] | 41 | [Extension("/OpenSim/Startup")] |
40 | public class LoadRegionsPlugin : IApplicationPlugin | 42 | public class LoadRegionsPlugin : IApplicationPlugin |
41 | { | 43 | { |
42 | private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); | 44 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
43 | 45 | ||
44 | public void Initialise(OpenSimMain openSim) | 46 | public void Initialise(OpenSimMain openSim) |
45 | { | 47 | { |
@@ -64,7 +66,7 @@ namespace OpenSim.ApplicationPlugins.LoadRegions | |||
64 | 66 | ||
65 | for (int i = 0; i < regionsToLoad.Length; i++) | 67 | for (int i = 0; i < regionsToLoad.Length; i++) |
66 | { | 68 | { |
67 | m_log.Debug("[LOADREGIONS]: Creating Region: " + regionsToLoad[i].RegionName + " (ThreadID: " + System.Threading.Thread.CurrentThread.ManagedThreadId.ToString() + ")"); | 69 | m_log.Debug("[LOADREGIONS]: Creating Region: " + regionsToLoad[i].RegionName + " (ThreadID: " + Thread.CurrentThread.ManagedThreadId.ToString() + ")"); |
68 | openSim.CreateRegion(regionsToLoad[i], true); | 70 | openSim.CreateRegion(regionsToLoad[i], true); |
69 | } | 71 | } |
70 | 72 | ||
@@ -94,7 +96,7 @@ namespace OpenSim.ApplicationPlugins.LoadRegions | |||
94 | { | 96 | { |
95 | if (regionhandle == regionsToLoad[i].RegionHandle) | 97 | if (regionhandle == regionsToLoad[i].RegionHandle) |
96 | { | 98 | { |
97 | m_log.Debug("[LOADREGIONS]: Creating Region: " + regionsToLoad[i].RegionName + " (ThreadID: " + System.Threading.Thread.CurrentThread.ManagedThreadId.ToString() + ")"); | 99 | m_log.Debug("[LOADREGIONS]: Creating Region: " + regionsToLoad[i].RegionName + " (ThreadID: " + Thread.CurrentThread.ManagedThreadId.ToString() + ")"); |
98 | openSim.CreateRegion(regionsToLoad[i], true); | 100 | openSim.CreateRegion(regionsToLoad[i], true); |
99 | } | 101 | } |
100 | } | 102 | } |