aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/RegistryCore.cs
diff options
context:
space:
mode:
authorMW2009-02-26 22:51:52 +0000
committerMW2009-02-26 22:51:52 +0000
commit756c5170694fa3dc4146c2b4034f52bd5c97ec86 (patch)
tree2390934b9e8544e332d55ff7a9a513424612914a /OpenSim/Framework/RegistryCore.cs
parentThis adds a new osGetAgentIP function with threat level set to High. It (diff)
downloadopensim-SC_OLD-756c5170694fa3dc4146c2b4034f52bd5c97ec86.zip
opensim-SC_OLD-756c5170694fa3dc4146c2b4034f52bd5c97ec86.tar.gz
opensim-SC_OLD-756c5170694fa3dc4146c2b4034f52bd5c97ec86.tar.bz2
opensim-SC_OLD-756c5170694fa3dc4146c2b4034f52bd5c97ec86.tar.xz
Added IRegionCreator interface that all ApplicationPlugins that are creators of Scenes should implement and register with the ApplicationRegistry.StackModuleInterface<>(); So that other plugins can attach to their OnNewRegionCreated event.
Made some changes to IRegistryCore and RegistryCore so they support "Stacked" interfaces.
Diffstat (limited to 'OpenSim/Framework/RegistryCore.cs')
-rw-r--r--OpenSim/Framework/RegistryCore.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/OpenSim/Framework/RegistryCore.cs b/OpenSim/Framework/RegistryCore.cs
index c703f9f..ee15845 100644
--- a/OpenSim/Framework/RegistryCore.cs
+++ b/OpenSim/Framework/RegistryCore.cs
@@ -40,5 +40,15 @@ namespace OpenSim.Framework
40 return (T)m_moduleInterfaces[typeof(T)]; 40 return (T)m_moduleInterfaces[typeof(T)];
41 } 41 }
42 42
43 public void StackModuleInterface<M>(M mod)
44 {
45
46 }
47
48 public T[] RequestModuleInterfaces<T>()
49 {
50 return new T[] { default(T) };
51 }
52
43 } 53 }
44} 54}