aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/ApplicationPlugins/CreateCommsManager/CreateCommsManagerPlugin.cs
diff options
context:
space:
mode:
authorMW2009-02-27 17:03:27 +0000
committerMW2009-02-27 17:03:27 +0000
commit5626d43259abfb0cac36d813f8d0090d28a47bb0 (patch)
tree19740017ad0f656812946caa0bd966804a7d7dbe /OpenSim/ApplicationPlugins/CreateCommsManager/CreateCommsManagerPlugin.cs
parentChanged the order of the OpenSim.Grid.GridServer and OpenSim.Grid.GridServer.... (diff)
downloadopensim-SC-5626d43259abfb0cac36d813f8d0090d28a47bb0.zip
opensim-SC-5626d43259abfb0cac36d813f8d0090d28a47bb0.tar.gz
opensim-SC-5626d43259abfb0cac36d813f8d0090d28a47bb0.tar.bz2
opensim-SC-5626d43259abfb0cac36d813f8d0090d28a47bb0.tar.xz
Changed the CreateCommsManagerPlugin so it requests a IRegionCreator and subscribes to the OnNewRegionCreated event on that interface rather than requesting the LoadRegionsPlugin directly.
Removed the reference to OpenSim.ApplicationPlugins.LoadRegions from the CreateCommsManagerPlugin project.
Diffstat (limited to 'OpenSim/ApplicationPlugins/CreateCommsManager/CreateCommsManagerPlugin.cs')
-rw-r--r--OpenSim/ApplicationPlugins/CreateCommsManager/CreateCommsManagerPlugin.cs7
1 files changed, 3 insertions, 4 deletions
diff --git a/OpenSim/ApplicationPlugins/CreateCommsManager/CreateCommsManagerPlugin.cs b/OpenSim/ApplicationPlugins/CreateCommsManager/CreateCommsManagerPlugin.cs
index a5ad028..a1b3960 100644
--- a/OpenSim/ApplicationPlugins/CreateCommsManager/CreateCommsManagerPlugin.cs
+++ b/OpenSim/ApplicationPlugins/CreateCommsManager/CreateCommsManagerPlugin.cs
@@ -44,7 +44,6 @@ using OpenSim.Region.Communications.Hypergrid;
44using OpenSim.Region.Communications.Local; 44using OpenSim.Region.Communications.Local;
45using OpenSim.Region.Communications.OGS1; 45using OpenSim.Region.Communications.OGS1;
46using OpenSim.Framework.Servers; 46using OpenSim.Framework.Servers;
47using OpenSim.ApplicationPlugins.LoadRegions;
48 47
49namespace OpenSim.ApplicationPlugins.CreateCommsManager 48namespace OpenSim.ApplicationPlugins.CreateCommsManager
50{ 49{
@@ -69,7 +68,7 @@ namespace OpenSim.ApplicationPlugins.CreateCommsManager
69 protected GridInfoService m_gridInfoService; 68 protected GridInfoService m_gridInfoService;
70 protected IHyperlink HGServices = null; 69 protected IHyperlink HGServices = null;
71 70
72 protected LoadRegionsPlugin m_loadRegionsPlugin; 71 protected IRegionCreator m_regionCreator;
73 72
74 public void Initialise() 73 public void Initialise()
75 { 74 {
@@ -91,9 +90,9 @@ namespace OpenSim.ApplicationPlugins.CreateCommsManager
91 90
92 public void PostInitialise() 91 public void PostInitialise()
93 { 92 {
94 if (m_openSim.ApplicationRegistry.TryGet<LoadRegionsPlugin>(out m_loadRegionsPlugin)) 93 if (m_openSim.ApplicationRegistry.TryGet<IRegionCreator>(out m_regionCreator))
95 { 94 {
96 m_loadRegionsPlugin.OnNewRegionCreated += RegionCreated; 95 m_regionCreator.OnNewRegionCreated += RegionCreated;
97 } 96 }
98 } 97 }
99 98