aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorMelanie Thielker2009-04-14 03:22:02 +0000
committerMelanie Thielker2009-04-14 03:22:02 +0000
commit285dfe305550dc3f47f934ef96ae0c1b0b87aa60 (patch)
treeaf3f69e3db42e527b43e3e9621a76da87c39bbee /OpenSim/Region
parentThis was needed for the prior commit. (diff)
downloadopensim-SC-285dfe305550dc3f47f934ef96ae0c1b0b87aa60.zip
opensim-SC-285dfe305550dc3f47f934ef96ae0c1b0b87aa60.tar.gz
opensim-SC-285dfe305550dc3f47f934ef96ae0c1b0b87aa60.tar.bz2
opensim-SC-285dfe305550dc3f47f934ef96ae0c1b0b87aa60.tar.xz
Add the RegionLoaded(Scene) API to the new region module interface to allow
region modules to use another region module's interfaces and events in a scene context
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/CoreModules/World/Terrain/TerrainModule.cs4
-rw-r--r--OpenSim/Region/Framework/Interfaces/IRegionModuleBase.cs13
2 files changed, 17 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/World/Terrain/TerrainModule.cs b/OpenSim/Region/CoreModules/World/Terrain/TerrainModule.cs
index 9f1867f..5893a11 100644
--- a/OpenSim/Region/CoreModules/World/Terrain/TerrainModule.cs
+++ b/OpenSim/Region/CoreModules/World/Terrain/TerrainModule.cs
@@ -136,6 +136,10 @@ namespace OpenSim.Region.CoreModules.World.Terrain
136 LoadPlugins(); 136 LoadPlugins();
137 } 137 }
138 138
139 public void RegionLoaded(Scene scene)
140 {
141 }
142
139 public void RemoveRegion(Scene scene) 143 public void RemoveRegion(Scene scene)
140 { 144 {
141 lock (m_scene) 145 lock (m_scene)
diff --git a/OpenSim/Region/Framework/Interfaces/IRegionModuleBase.cs b/OpenSim/Region/Framework/Interfaces/IRegionModuleBase.cs
index 265b464..9d2327a 100644
--- a/OpenSim/Region/Framework/Interfaces/IRegionModuleBase.cs
+++ b/OpenSim/Region/Framework/Interfaces/IRegionModuleBase.cs
@@ -71,6 +71,19 @@ namespace OpenSim.Region.Framework.Interfaces
71 /// A <see cref="Scene"/> 71 /// A <see cref="Scene"/>
72 /// </param> 72 /// </param>
73 void RemoveRegion(Scene scene); 73 void RemoveRegion(Scene scene);
74
75 /// <summary>
76 /// This will be called once for every scene loaded. In a shared module
77 /// this will be multiple times in one instance, while a nonshared
78 /// module instance will only be called once.
79 /// This method is called after AddRegion has been called in all
80 /// modules for that scene, providing an opportunity to request
81 /// another module's interface, or hook an event from another module.
82 /// </summary>
83 /// <param name="scene">
84 /// A <see cref="Scene"/>
85 /// </param>
86 void RegionLoaded(Scene scene);
74 } 87 }
75 88
76} 89}