From 275046cf0248c61db161bf75cb3b4356a9ecc0e9 Mon Sep 17 00:00:00 2001 From: Diva Canto Date: Sun, 1 May 2011 12:03:00 -0700 Subject: Change GetTextureModule.cs to conform to the new IRegion module interface. NOTHING OF THIS WORKS. Compiles. --- .../ClientStack/Linden/Caps/GetTextureModule.cs | 27 +++++++++++++++++----- 1 file changed, 21 insertions(+), 6 deletions(-) (limited to 'OpenSim/Region/ClientStack') diff --git a/OpenSim/Region/ClientStack/Linden/Caps/GetTextureModule.cs b/OpenSim/Region/ClientStack/Linden/Caps/GetTextureModule.cs index 341240d..86c990f 100644 --- a/OpenSim/Region/ClientStack/Linden/Caps/GetTextureModule.cs +++ b/OpenSim/Region/ClientStack/Linden/Caps/GetTextureModule.cs @@ -52,7 +52,7 @@ namespace OpenSim.Region.ClientStack.Linden { [Extension(Path = "/OpenSim/RegionModules", NodeName = "RegionModule")] - public class GetTextureModule : IRegionModule + public class GetTextureModule : ISharedRegionModule { private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); @@ -64,12 +64,22 @@ namespace OpenSim.Region.ClientStack.Linden // TODO: Change this to a config option const string REDIRECT_URL = null; + #region ISharedRegionModule Members - #region IRegionModule Members + public void Initialise(IConfigSource pSource) + { + } + + public void AddRegion(Scene s) + { + } + + public void RemoveRegion(Scene s) + { + } - public void Initialise(Scene pScene, IConfigSource pSource) + public void RegionLoaded(Scene s) { - m_scene = pScene; } public void PostInitialise() @@ -81,7 +91,13 @@ namespace OpenSim.Region.ClientStack.Linden public void Close() { } public string Name { get { return "GetTextureModule"; } } - public bool IsSharedModule { get { return false; } } + + public Type ReplaceableInterface + { + get { return null; } + } + + #endregion public void RegisterCaps(UUID agentID, Caps caps) { @@ -92,6 +108,5 @@ namespace OpenSim.Region.ClientStack.Linden caps.RegisterHandler("GetTexture", new GetTextureHandler("/CAPS/" + capID + "/", m_assetService)); } - #endregion } } -- cgit v1.1