diff options
author | Revolution | 2010-01-22 18:09:33 -0600 |
---|---|---|
committer | Melanie | 2010-01-23 15:18:52 +0000 |
commit | ec3c31e61e5e540f822891110df9bc978655bbaf (patch) | |
tree | b0b34a239eab48e163a3ca064edcd7567948423c /OpenSim/Region/CoreModules/Agent/TextureDownload | |
parent | add a target position to agent updates to ScenePresence to support alternativ... (diff) | |
download | opensim-SC_OLD-ec3c31e61e5e540f822891110df9bc978655bbaf.zip opensim-SC_OLD-ec3c31e61e5e540f822891110df9bc978655bbaf.tar.gz opensim-SC_OLD-ec3c31e61e5e540f822891110df9bc978655bbaf.tar.bz2 opensim-SC_OLD-ec3c31e61e5e540f822891110df9bc978655bbaf.tar.xz |
Updates all IRegionModules to the new style region modules.
Signed-off-by: Melanie <melanie@t-data.com>
Diffstat (limited to 'OpenSim/Region/CoreModules/Agent/TextureDownload')
-rw-r--r-- | OpenSim/Region/CoreModules/Agent/TextureDownload/TextureDownloadModule.cs | 33 |
1 files changed, 23 insertions, 10 deletions
diff --git a/OpenSim/Region/CoreModules/Agent/TextureDownload/TextureDownloadModule.cs b/OpenSim/Region/CoreModules/Agent/TextureDownload/TextureDownloadModule.cs index 71ff28c..c4d84cb 100644 --- a/OpenSim/Region/CoreModules/Agent/TextureDownload/TextureDownloadModule.cs +++ b/OpenSim/Region/CoreModules/Agent/TextureDownload/TextureDownloadModule.cs | |||
@@ -30,6 +30,7 @@ using System.Collections.Generic; | |||
30 | using System.Reflection; | 30 | using System.Reflection; |
31 | using System.Threading; | 31 | using System.Threading; |
32 | using log4net; | 32 | using log4net; |
33 | using Mono.Addins; | ||
33 | using Nini.Config; | 34 | using Nini.Config; |
34 | using OpenMetaverse; | 35 | using OpenMetaverse; |
35 | using OpenSim.Framework; | 36 | using OpenSim.Framework; |
@@ -41,7 +42,8 @@ using OpenSim.Services.Interfaces; | |||
41 | 42 | ||
42 | namespace OpenSim.Region.CoreModules.Agent.TextureDownload | 43 | namespace OpenSim.Region.CoreModules.Agent.TextureDownload |
43 | { | 44 | { |
44 | public class TextureDownloadModule : IRegionModule | 45 | [Extension(Path = "/OpenSim/RegionModules", NodeName = "RegionModule")] |
46 | public class TextureDownloadModule : INonSharedRegionModule | ||
45 | { | 47 | { |
46 | private static readonly ILog m_log | 48 | private static readonly ILog m_log |
47 | = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | 49 | = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
@@ -65,11 +67,14 @@ namespace OpenSim.Region.CoreModules.Agent.TextureDownload | |||
65 | { | 67 | { |
66 | } | 68 | } |
67 | 69 | ||
68 | #region IRegionModule Members | 70 | #region INonSharedRegionModule Members |
69 | 71 | ||
70 | public void Initialise(Scene scene, IConfigSource config) | 72 | public void Initialise(IConfigSource config) |
73 | { | ||
74 | } | ||
75 | |||
76 | public void AddRegion(Scene scene) | ||
71 | { | 77 | { |
72 | |||
73 | if (m_scene == null) | 78 | if (m_scene == null) |
74 | { | 79 | { |
75 | //m_log.Debug("Creating Texture download module"); | 80 | //m_log.Debug("Creating Texture download module"); |
@@ -90,22 +95,30 @@ namespace OpenSim.Region.CoreModules.Agent.TextureDownload | |||
90 | } | 95 | } |
91 | } | 96 | } |
92 | 97 | ||
93 | public void PostInitialise() | 98 | public Type ReplaceableInterface |
94 | { | 99 | { |
100 | get { return null; } | ||
95 | } | 101 | } |
96 | 102 | ||
97 | public void Close() | 103 | public void RegionLoaded(Scene scene) |
98 | { | 104 | { |
99 | } | 105 | } |
100 | 106 | ||
101 | public string Name | 107 | public void RemoveRegion(Scene scene) |
102 | { | 108 | { |
103 | get { return "TextureDownloadModule"; } | 109 | if(m_scenes.Contains(scene)) |
110 | m_scenes.Remove(scene); | ||
111 | scene.EventManager.OnNewClient -= NewClient; | ||
112 | scene.EventManager.OnRemovePresence -= EventManager_OnRemovePresence; | ||
104 | } | 113 | } |
105 | 114 | ||
106 | public bool IsSharedModule | 115 | public void Close() |
116 | { | ||
117 | } | ||
118 | |||
119 | public string Name | ||
107 | { | 120 | { |
108 | get { return false; } | 121 | get { return "TextureDownloadModule"; } |
109 | } | 122 | } |
110 | 123 | ||
111 | #endregion | 124 | #endregion |