From 492515cf3f22d7f4ebdf96c924e51f7462eb0aa8 Mon Sep 17 00:00:00 2001
From: Diva Canto
Date: Fri, 9 Nov 2012 21:58:39 -0800
Subject: One more module converted: Vegetation.
---
.../Resources/CoreModulePlugin.addin.xml | 1 +
.../World/Vegetation/VegetationModule.cs | 26 +++++++++++++++++-----
2 files changed, 22 insertions(+), 5 deletions(-)
diff --git a/OpenSim/Region/CoreModules/Resources/CoreModulePlugin.addin.xml b/OpenSim/Region/CoreModules/Resources/CoreModulePlugin.addin.xml
index 8fc70e2..14dc22a 100644
--- a/OpenSim/Region/CoreModules/Resources/CoreModulePlugin.addin.xml
+++ b/OpenSim/Region/CoreModules/Resources/CoreModulePlugin.addin.xml
@@ -41,6 +41,7 @@
+
diff --git a/OpenSim/Region/CoreModules/World/Vegetation/VegetationModule.cs b/OpenSim/Region/CoreModules/World/Vegetation/VegetationModule.cs
index f5f35bb..528da0e3 100644
--- a/OpenSim/Region/CoreModules/World/Vegetation/VegetationModule.cs
+++ b/OpenSim/Region/CoreModules/World/Vegetation/VegetationModule.cs
@@ -36,7 +36,7 @@ using OpenSim.Region.Framework.Scenes;
namespace OpenSim.Region.CoreModules.Avatar.Vegetation
{
- public class VegetationModule : IRegionModule, IVegetationModule
+ public class VegetationModule : INonSharedRegionModule, IVegetationModule
{
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
@@ -45,16 +45,32 @@ namespace OpenSim.Region.CoreModules.Avatar.Vegetation
protected static readonly PCode[] creationCapabilities = new PCode[] { PCode.Grass, PCode.NewTree, PCode.Tree };
public PCode[] CreationCapabilities { get { return creationCapabilities; } }
- public void Initialise(Scene scene, IConfigSource source)
+ public void Initialise(IConfigSource source)
+ {
+ }
+
+ public void AddRegion(Scene scene)
{
m_scene = scene;
m_scene.RegisterModuleInterface(this);
}
-
- public void PostInitialise() {}
+
+ public void RemoveRegion(Scene scene)
+ {
+ m_scene.UnregisterModuleInterface(this);
+ }
+
public void Close() {}
public string Name { get { return "Vegetation Module"; } }
- public bool IsSharedModule { get { return false; } }
+
+ public Type ReplaceableInterface
+ {
+ get { return null; }
+ }
+
+ public void RegionLoaded(Scene scene)
+ {
+ }
public SceneObjectGroup AddTree(
UUID uuid, UUID groupID, Vector3 scale, Quaternion rotation, Vector3 position, Tree treeType, bool newTree)
--
cgit v1.1