diff options
Updates all IRegionModules to the new style region modules.
Signed-off-by: Melanie <melanie@t-data.com>
Diffstat (limited to 'OpenSim/Region/CoreModules/Avatar/Gestures/GesturesModule.cs')
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/Gestures/GesturesModule.cs | 30 |
1 files changed, 25 insertions, 5 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Gestures/GesturesModule.cs b/OpenSim/Region/CoreModules/Avatar/Gestures/GesturesModule.cs index 8ce5092..c306f94 100644 --- a/OpenSim/Region/CoreModules/Avatar/Gestures/GesturesModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/Gestures/GesturesModule.cs | |||
@@ -25,8 +25,10 @@ | |||
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System; | ||
28 | using System.Reflection; | 29 | using System.Reflection; |
29 | using log4net; | 30 | using log4net; |
31 | using Mono.Addins; | ||
30 | using Nini.Config; | 32 | using Nini.Config; |
31 | using OpenMetaverse; | 33 | using OpenMetaverse; |
32 | using OpenSim.Framework; | 34 | using OpenSim.Framework; |
@@ -37,23 +39,41 @@ using OpenSim.Services.Interfaces; | |||
37 | 39 | ||
38 | namespace OpenSim.Region.CoreModules.Avatar.Gestures | 40 | namespace OpenSim.Region.CoreModules.Avatar.Gestures |
39 | { | 41 | { |
40 | public class GesturesModule : IRegionModule | 42 | [Extension(Path = "/OpenSim/RegionModules", NodeName = "RegionModule")] |
43 | public class GesturesModule : INonSharedRegionModule | ||
41 | { | 44 | { |
42 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | 45 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
43 | 46 | ||
44 | protected Scene m_scene; | 47 | protected Scene m_scene; |
45 | 48 | ||
46 | public void Initialise(Scene scene, IConfigSource source) | 49 | public void Initialise(IConfigSource source) |
50 | { | ||
51 | } | ||
52 | |||
53 | public Type ReplaceableInterface | ||
54 | { | ||
55 | get { return null; } | ||
56 | } | ||
57 | |||
58 | public void AddRegion(Scene scene) | ||
47 | { | 59 | { |
48 | m_scene = scene; | 60 | m_scene = scene; |
49 | |||
50 | m_scene.EventManager.OnNewClient += OnNewClient; | 61 | m_scene.EventManager.OnNewClient += OnNewClient; |
51 | } | 62 | } |
63 | |||
64 | public void RegionLoaded(Scene scene) | ||
65 | { | ||
66 | } | ||
67 | |||
68 | public void RemoveRegion(Scene scene) | ||
69 | { | ||
70 | if(m_scene == scene) | ||
71 | m_scene = null; | ||
72 | scene.EventManager.OnNewClient -= OnNewClient; | ||
73 | } | ||
52 | 74 | ||
53 | public void PostInitialise() {} | ||
54 | public void Close() {} | 75 | public void Close() {} |
55 | public string Name { get { return "Gestures Module"; } } | 76 | public string Name { get { return "Gestures Module"; } } |
56 | public bool IsSharedModule { get { return false; } } | ||
57 | 77 | ||
58 | private void OnNewClient(IClientAPI client) | 78 | private void OnNewClient(IClientAPI client) |
59 | { | 79 | { |