aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/OptionalModules/SvnSerialiser
diff options
context:
space:
mode:
authorRevolution2010-01-22 18:09:33 -0600
committerMelanie2010-01-23 15:18:52 +0000
commitec3c31e61e5e540f822891110df9bc978655bbaf (patch)
treeb0b34a239eab48e163a3ca064edcd7567948423c /OpenSim/Region/OptionalModules/SvnSerialiser
parentadd a target position to agent updates to ScenePresence to support alternativ... (diff)
downloadopensim-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/OptionalModules/SvnSerialiser')
-rw-r--r--OpenSim/Region/OptionalModules/SvnSerialiser/SvnBackupModule.cs28
1 files changed, 20 insertions, 8 deletions
diff --git a/OpenSim/Region/OptionalModules/SvnSerialiser/SvnBackupModule.cs b/OpenSim/Region/OptionalModules/SvnSerialiser/SvnBackupModule.cs
index 3490a8b..fa5878d 100644
--- a/OpenSim/Region/OptionalModules/SvnSerialiser/SvnBackupModule.cs
+++ b/OpenSim/Region/OptionalModules/SvnSerialiser/SvnBackupModule.cs
@@ -31,6 +31,7 @@ using System.IO;
31using System.Reflection; 31using System.Reflection;
32using System.Timers; 32using System.Timers;
33using log4net; 33using log4net;
34using Mono.Addins;
34using Nini.Config; 35using Nini.Config;
35using OpenSim.Region.Framework.Interfaces; 36using OpenSim.Region.Framework.Interfaces;
36using OpenSim.Region.CoreModules.World.Serialiser; 37using OpenSim.Region.CoreModules.World.Serialiser;
@@ -42,7 +43,8 @@ using Slash = System.IO.Path;
42 43
43namespace OpenSim.Region.Modules.SvnSerialiser 44namespace OpenSim.Region.Modules.SvnSerialiser
44{ 45{
45 public class SvnBackupModule : IRegionModule 46 [Extension(Path = "/OpenSim/RegionModules", NodeName = "RegionModule")]
47 public class SvnBackupModule : ISharedRegionModule
46 { 48 {
47 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); 49 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
48 50
@@ -200,9 +202,9 @@ namespace OpenSim.Region.Modules.SvnSerialiser
200 202
201 #endregion 203 #endregion
202 204
203 #region IRegionModule Members 205 #region ISharedRegionModule Members
204 206
205 public void Initialise(Scene scene, IConfigSource source) 207 public void Initialise(IConfigSource source)
206 { 208 {
207 m_scenes = new List<Scene>(); 209 m_scenes = new List<Scene>();
208 m_timer = new Timer(); 210 m_timer = new Timer();
@@ -225,7 +227,10 @@ namespace OpenSim.Region.Modules.SvnSerialiser
225 catch (Exception) 227 catch (Exception)
226 { 228 {
227 } 229 }
230 }
228 231
232 public void AddRegion(Scene scene)
233 {
229 lock (m_scenes) 234 lock (m_scenes)
230 { 235 {
231 m_scenes.Add(scene); 236 m_scenes.Add(scene);
@@ -236,6 +241,18 @@ namespace OpenSim.Region.Modules.SvnSerialiser
236 scene.EventManager.OnPluginConsole += EventManager_OnPluginConsole; 241 scene.EventManager.OnPluginConsole += EventManager_OnPluginConsole;
237 } 242 }
238 } 243 }
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 }
239 256
240 public void PostInitialise() 257 public void PostInitialise()
241 { 258 {
@@ -277,11 +294,6 @@ namespace OpenSim.Region.Modules.SvnSerialiser
277 get { return "SvnBackupModule"; } 294 get { return "SvnBackupModule"; }
278 } 295 }
279 296
280 public bool IsSharedModule
281 {
282 get { return true; }
283 }
284
285 #endregion 297 #endregion
286 298
287 private void EventManager_OnPluginConsole(string[] args) 299 private void EventManager_OnPluginConsole(string[] args)