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/Xfer | |
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/Xfer')
-rw-r--r-- | OpenSim/Region/CoreModules/Agent/Xfer/XferModule.cs | 30 |
1 files changed, 21 insertions, 9 deletions
diff --git a/OpenSim/Region/CoreModules/Agent/Xfer/XferModule.cs b/OpenSim/Region/CoreModules/Agent/Xfer/XferModule.cs index ef7dce8..d062361 100644 --- a/OpenSim/Region/CoreModules/Agent/Xfer/XferModule.cs +++ b/OpenSim/Region/CoreModules/Agent/Xfer/XferModule.cs | |||
@@ -27,6 +27,7 @@ | |||
27 | 27 | ||
28 | using System; | 28 | using System; |
29 | using System.Collections.Generic; | 29 | using System.Collections.Generic; |
30 | using Mono.Addins; | ||
30 | using Nini.Config; | 31 | using Nini.Config; |
31 | using OpenMetaverse; | 32 | using OpenMetaverse; |
32 | using OpenSim.Framework; | 33 | using OpenSim.Framework; |
@@ -35,7 +36,8 @@ using OpenSim.Region.Framework.Scenes; | |||
35 | 36 | ||
36 | namespace OpenSim.Region.CoreModules.Agent.Xfer | 37 | namespace OpenSim.Region.CoreModules.Agent.Xfer |
37 | { | 38 | { |
38 | public class XferModule : IRegionModule, IXfer | 39 | [Extension(Path = "/OpenSim/RegionModules", NodeName = "RegionModule")] |
40 | public class XferModule : INonSharedRegionModule, IXfer | ||
39 | { | 41 | { |
40 | private Scene m_scene; | 42 | private Scene m_scene; |
41 | private Dictionary<string, XferRequest> Requests = new Dictionary<string, XferRequest>(); | 43 | private Dictionary<string, XferRequest> Requests = new Dictionary<string, XferRequest>(); |
@@ -52,9 +54,13 @@ namespace OpenSim.Region.CoreModules.Agent.Xfer | |||
52 | public DateTime timeStamp; | 54 | public DateTime timeStamp; |
53 | } | 55 | } |
54 | 56 | ||
55 | #region IRegionModule Members | 57 | #region INonSharedRegionModule Members |
56 | 58 | ||
57 | public void Initialise(Scene scene, IConfigSource config) | 59 | public void Initialise(IConfigSource config) |
60 | { | ||
61 | } | ||
62 | |||
63 | public void AddRegion(Scene scene) | ||
58 | { | 64 | { |
59 | m_scene = scene; | 65 | m_scene = scene; |
60 | m_scene.EventManager.OnNewClient += NewClient; | 66 | m_scene.EventManager.OnNewClient += NewClient; |
@@ -62,22 +68,28 @@ namespace OpenSim.Region.CoreModules.Agent.Xfer | |||
62 | m_scene.RegisterModuleInterface<IXfer>(this); | 68 | m_scene.RegisterModuleInterface<IXfer>(this); |
63 | } | 69 | } |
64 | 70 | ||
65 | public void PostInitialise() | 71 | public Type ReplaceableInterface |
66 | { | 72 | { |
73 | get { return null; } | ||
67 | } | 74 | } |
68 | 75 | ||
69 | public void Close() | 76 | public void RegionLoaded(Scene scene) |
70 | { | 77 | { |
71 | } | 78 | } |
72 | 79 | ||
73 | public string Name | 80 | public void RemoveRegion(Scene scene) |
74 | { | 81 | { |
75 | get { return "XferModule"; } | 82 | scene.EventManager.OnNewClient -= NewClient; |
83 | scene.UnregisterModuleInterface<IXfer>(this); | ||
76 | } | 84 | } |
77 | 85 | ||
78 | public bool IsSharedModule | 86 | public void Close() |
87 | { | ||
88 | } | ||
89 | |||
90 | public string Name | ||
79 | { | 91 | { |
80 | get { return false; } | 92 | get { return "XferModule"; } |
81 | } | 93 | } |
82 | 94 | ||
83 | #endregion | 95 | #endregion |