From 5626d43259abfb0cac36d813f8d0090d28a47bb0 Mon Sep 17 00:00:00 2001 From: MW Date: Fri, 27 Feb 2009 17:03:27 +0000 Subject: 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. --- .../CreateCommsManager/CreateCommsManagerPlugin.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'OpenSim/ApplicationPlugins/CreateCommsManager/CreateCommsManagerPlugin.cs') 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; using OpenSim.Region.Communications.Local; using OpenSim.Region.Communications.OGS1; using OpenSim.Framework.Servers; -using OpenSim.ApplicationPlugins.LoadRegions; namespace OpenSim.ApplicationPlugins.CreateCommsManager { @@ -69,7 +68,7 @@ namespace OpenSim.ApplicationPlugins.CreateCommsManager protected GridInfoService m_gridInfoService; protected IHyperlink HGServices = null; - protected LoadRegionsPlugin m_loadRegionsPlugin; + protected IRegionCreator m_regionCreator; public void Initialise() { @@ -91,9 +90,9 @@ namespace OpenSim.ApplicationPlugins.CreateCommsManager public void PostInitialise() { - if (m_openSim.ApplicationRegistry.TryGet(out m_loadRegionsPlugin)) + if (m_openSim.ApplicationRegistry.TryGet(out m_regionCreator)) { - m_loadRegionsPlugin.OnNewRegionCreated += RegionCreated; + m_regionCreator.OnNewRegionCreated += RegionCreated; } } -- cgit v1.1