diff options
author | Melanie | 2010-01-29 07:20:13 +0000 |
---|---|---|
committer | Melanie | 2010-01-29 07:20:13 +0000 |
commit | cfca9e1e811f6cdea6b7c3338f7f783a07f8e0ac (patch) | |
tree | 43f3fd01f30651d482f81b5ae7c25fd84cc8ca37 /OpenSim/Region/OptionalModules/SvnSerialiser/SvnBackupModule.cs | |
parent | Merge branch 'master' into careminster (diff) | |
download | opensim-SC-cfca9e1e811f6cdea6b7c3338f7f783a07f8e0ac.zip opensim-SC-cfca9e1e811f6cdea6b7c3338f7f783a07f8e0ac.tar.gz opensim-SC-cfca9e1e811f6cdea6b7c3338f7f783a07f8e0ac.tar.bz2 opensim-SC-cfca9e1e811f6cdea6b7c3338f7f783a07f8e0ac.tar.xz |
Revert "Updates all IRegionModules to the new style region modules."
This reverts commit ec3c31e61e5e540f822891110df9bc978655bbaf.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/OptionalModules/SvnSerialiser/SvnBackupModule.cs | 28 |
1 files changed, 8 insertions, 20 deletions
diff --git a/OpenSim/Region/OptionalModules/SvnSerialiser/SvnBackupModule.cs b/OpenSim/Region/OptionalModules/SvnSerialiser/SvnBackupModule.cs index fa5878d..3490a8b 100644 --- a/OpenSim/Region/OptionalModules/SvnSerialiser/SvnBackupModule.cs +++ b/OpenSim/Region/OptionalModules/SvnSerialiser/SvnBackupModule.cs | |||
@@ -31,7 +31,6 @@ using System.IO; | |||
31 | using System.Reflection; | 31 | using System.Reflection; |
32 | using System.Timers; | 32 | using System.Timers; |
33 | using log4net; | 33 | using log4net; |
34 | using Mono.Addins; | ||
35 | using Nini.Config; | 34 | using Nini.Config; |
36 | using OpenSim.Region.Framework.Interfaces; | 35 | using OpenSim.Region.Framework.Interfaces; |
37 | using OpenSim.Region.CoreModules.World.Serialiser; | 36 | using OpenSim.Region.CoreModules.World.Serialiser; |
@@ -43,8 +42,7 @@ using Slash = System.IO.Path; | |||
43 | 42 | ||
44 | namespace OpenSim.Region.Modules.SvnSerialiser | 43 | namespace OpenSim.Region.Modules.SvnSerialiser |
45 | { | 44 | { |
46 | [Extension(Path = "/OpenSim/RegionModules", NodeName = "RegionModule")] | 45 | public class SvnBackupModule : IRegionModule |
47 | public class SvnBackupModule : ISharedRegionModule | ||
48 | { | 46 | { |
49 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | 47 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
50 | 48 | ||
@@ -202,9 +200,9 @@ namespace OpenSim.Region.Modules.SvnSerialiser | |||
202 | 200 | ||
203 | #endregion | 201 | #endregion |
204 | 202 | ||
205 | #region ISharedRegionModule Members | 203 | #region IRegionModule Members |
206 | 204 | ||
207 | public void Initialise(IConfigSource source) | 205 | public void Initialise(Scene scene, IConfigSource source) |
208 | { | 206 | { |
209 | m_scenes = new List<Scene>(); | 207 | m_scenes = new List<Scene>(); |
210 | m_timer = new Timer(); | 208 | m_timer = new Timer(); |
@@ -227,10 +225,7 @@ namespace OpenSim.Region.Modules.SvnSerialiser | |||
227 | catch (Exception) | 225 | catch (Exception) |
228 | { | 226 | { |
229 | } | 227 | } |
230 | } | ||
231 | 228 | ||
232 | public void AddRegion(Scene scene) | ||
233 | { | ||
234 | lock (m_scenes) | 229 | lock (m_scenes) |
235 | { | 230 | { |
236 | m_scenes.Add(scene); | 231 | m_scenes.Add(scene); |
@@ -241,18 +236,6 @@ namespace OpenSim.Region.Modules.SvnSerialiser | |||
241 | scene.EventManager.OnPluginConsole += EventManager_OnPluginConsole; | 236 | scene.EventManager.OnPluginConsole += EventManager_OnPluginConsole; |
242 | } | 237 | } |
243 | } | 238 | } |
244 | public void RegionLoaded(Scene scene) | ||
245 | { | ||
246 | } | ||
247 | |||
248 | public void RemoveRegion(Scene scene) | ||
249 | { | ||
250 | } | ||
251 | |||
252 | public Type ReplaceableInterface | ||
253 | { | ||
254 | get { return null; } | ||
255 | } | ||
256 | 239 | ||
257 | public void PostInitialise() | 240 | public void PostInitialise() |
258 | { | 241 | { |
@@ -294,6 +277,11 @@ namespace OpenSim.Region.Modules.SvnSerialiser | |||
294 | get { return "SvnBackupModule"; } | 277 | get { return "SvnBackupModule"; } |
295 | } | 278 | } |
296 | 279 | ||
280 | public bool IsSharedModule | ||
281 | { | ||
282 | get { return true; } | ||
283 | } | ||
284 | |||
297 | #endregion | 285 | #endregion |
298 | 286 | ||
299 | private void EventManager_OnPluginConsole(string[] args) | 287 | private void EventManager_OnPluginConsole(string[] args) |