* Converts recently added OGSRadmin to IRegionModule because I cant be arsed figuring out Mono.Addins.

0.6.6-post-fixes
Adam Frisby 2009-05-28 18:59:18 +00:00
parent 940b5567a0
commit 561d6c1cdc
1 changed files with 17 additions and 1 deletions

View File

@ -13,7 +13,7 @@ using OpenSim.Region.Framework.Scenes;
namespace OpenSim.Region.CoreModules.InterGrid namespace OpenSim.Region.CoreModules.InterGrid
{ {
public class OGSRadmin : ISharedRegionModule public class OGSRadmin : IRegionModule
{ {
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
private readonly List<Scene> m_scenes = new List<Scene>(); private readonly List<Scene> m_scenes = new List<Scene>();
@ -27,6 +27,7 @@ namespace OpenSim.Region.CoreModules.InterGrid
get { return "OGS Supporting RAdmin"; } get { return "OGS Supporting RAdmin"; }
} }
public void Initialise(IConfigSource source) public void Initialise(IConfigSource source)
{ {
m_settings = source; m_settings = source;
@ -65,6 +66,21 @@ namespace OpenSim.Region.CoreModules.InterGrid
#endregion #endregion
#region IRegionModule
public void Initialise(Scene scene, IConfigSource source)
{
lock (m_scenes)
m_scenes.Add(scene);
}
public bool IsSharedModule
{
get { return true; }
}
#endregion
public XmlRpcResponse GridWideMessage(XmlRpcRequest req, IPEndPoint remoteClient) public XmlRpcResponse GridWideMessage(XmlRpcRequest req, IPEndPoint remoteClient)
{ {
XmlRpcResponse response = new XmlRpcResponse(); XmlRpcResponse response = new XmlRpcResponse();