From 285dfe305550dc3f47f934ef96ae0c1b0b87aa60 Mon Sep 17 00:00:00 2001
From: Melanie Thielker
Date: Tue, 14 Apr 2009 03:22:02 +0000
Subject: 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
---
OpenSim/Region/CoreModules/World/Terrain/TerrainModule.cs | 4 ++++
OpenSim/Region/Framework/Interfaces/IRegionModuleBase.cs | 13 +++++++++++++
2 files changed, 17 insertions(+)
(limited to 'OpenSim/Region')
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
LoadPlugins();
}
+ public void RegionLoaded(Scene scene)
+ {
+ }
+
public void RemoveRegion(Scene scene)
{
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
/// A
///
void RemoveRegion(Scene scene);
+
+ ///
+ /// This will be called once for every scene loaded. In a shared module
+ /// this will be multiple times in one instance, while a nonshared
+ /// module instance will only be called once.
+ /// This method is called after AddRegion has been called in all
+ /// modules for that scene, providing an opportunity to request
+ /// another module's interface, or hook an event from another module.
+ ///
+ ///
+ /// A
+ ///
+ void RegionLoaded(Scene scene);
}
}
--
cgit v1.1