diff options
Diffstat (limited to 'OpenSim/Region/CoreModules/World/Vegetation/VegetationModule.cs')
-rw-r--r-- | OpenSim/Region/CoreModules/World/Vegetation/VegetationModule.cs | 26 |
1 files changed, 21 insertions, 5 deletions
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; | |||
36 | 36 | ||
37 | namespace OpenSim.Region.CoreModules.Avatar.Vegetation | 37 | namespace OpenSim.Region.CoreModules.Avatar.Vegetation |
38 | { | 38 | { |
39 | public class VegetationModule : IRegionModule, IVegetationModule | 39 | public class VegetationModule : INonSharedRegionModule, IVegetationModule |
40 | { | 40 | { |
41 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | 41 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
42 | 42 | ||
@@ -45,16 +45,32 @@ namespace OpenSim.Region.CoreModules.Avatar.Vegetation | |||
45 | protected static readonly PCode[] creationCapabilities = new PCode[] { PCode.Grass, PCode.NewTree, PCode.Tree }; | 45 | protected static readonly PCode[] creationCapabilities = new PCode[] { PCode.Grass, PCode.NewTree, PCode.Tree }; |
46 | public PCode[] CreationCapabilities { get { return creationCapabilities; } } | 46 | public PCode[] CreationCapabilities { get { return creationCapabilities; } } |
47 | 47 | ||
48 | public void Initialise(Scene scene, IConfigSource source) | 48 | public void Initialise(IConfigSource source) |
49 | { | ||
50 | } | ||
51 | |||
52 | public void AddRegion(Scene scene) | ||
49 | { | 53 | { |
50 | m_scene = scene; | 54 | m_scene = scene; |
51 | m_scene.RegisterModuleInterface<IVegetationModule>(this); | 55 | m_scene.RegisterModuleInterface<IVegetationModule>(this); |
52 | } | 56 | } |
53 | 57 | ||
54 | public void PostInitialise() {} | 58 | public void RemoveRegion(Scene scene) |
59 | { | ||
60 | m_scene.UnregisterModuleInterface<IVegetationModule>(this); | ||
61 | } | ||
62 | |||
55 | public void Close() {} | 63 | public void Close() {} |
56 | public string Name { get { return "Vegetation Module"; } } | 64 | public string Name { get { return "Vegetation Module"; } } |
57 | public bool IsSharedModule { get { return false; } } | 65 | |
66 | public Type ReplaceableInterface | ||
67 | { | ||
68 | get { return null; } | ||
69 | } | ||
70 | |||
71 | public void RegionLoaded(Scene scene) | ||
72 | { | ||
73 | } | ||
58 | 74 | ||
59 | public SceneObjectGroup AddTree( | 75 | public SceneObjectGroup AddTree( |
60 | UUID uuid, UUID groupID, Vector3 scale, Quaternion rotation, Vector3 position, Tree treeType, bool newTree) | 76 | UUID uuid, UUID groupID, Vector3 scale, Quaternion rotation, Vector3 position, Tree treeType, bool newTree) |