aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/OptionalModules/SvnSerialiser/SvnBackupModule.cs
diff options
context:
space:
mode:
authorMelanie2010-01-29 07:20:13 +0000
committerMelanie2010-01-29 07:21:06 +0000
commita87a247f0548d39a8c39b1d28123d7da8db44598 (patch)
tree7f9f77c38a224bc6d4bea7ccced1d4710c8a91b1 /OpenSim/Region/OptionalModules/SvnSerialiser/SvnBackupModule.cs
parentMerge branch 'master' of melanie@opensimulator.org:/var/git/opensim (diff)
downloadopensim-SC_OLD-a87a247f0548d39a8c39b1d28123d7da8db44598.zip
opensim-SC_OLD-a87a247f0548d39a8c39b1d28123d7da8db44598.tar.gz
opensim-SC_OLD-a87a247f0548d39a8c39b1d28123d7da8db44598.tar.bz2
opensim-SC_OLD-a87a247f0548d39a8c39b1d28123d7da8db44598.tar.xz
Revert "Updates all IRegionModules to the new style region modules."
This reverts commit ec3c31e61e5e540f822891110df9bc978655bbaf.
Diffstat (limited to 'OpenSim/Region/OptionalModules/SvnSerialiser/SvnBackupModule.cs')
-rw-r--r--OpenSim/Region/OptionalModules/SvnSerialiser/SvnBackupModule.cs28
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;
31using System.Reflection; 31using System.Reflection;
32using System.Timers; 32using System.Timers;
33using log4net; 33using log4net;
34using Mono.Addins;
35using Nini.Config; 34using Nini.Config;
36using OpenSim.Region.Framework.Interfaces; 35using OpenSim.Region.Framework.Interfaces;
37using OpenSim.Region.CoreModules.World.Serialiser; 36using OpenSim.Region.CoreModules.World.Serialiser;
@@ -43,8 +42,7 @@ using Slash = System.IO.Path;
43 42
44namespace OpenSim.Region.Modules.SvnSerialiser 43namespace 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)