parent
f63b83b085
commit
e206a9ce88
|
@ -440,16 +440,12 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
/// <returns>null if there is no registered module implementing that interface</returns>
|
/// <returns>null if there is no registered module implementing that interface</returns>
|
||||||
public T RequestModuleInterface<T>()
|
public T RequestModuleInterface<T>()
|
||||||
{
|
{
|
||||||
if (ModuleInterfaces.ContainsKey(typeof(T)) && (ModuleInterfaces[typeof(T)].Count > 0))
|
if (ModuleInterfaces.ContainsKey(typeof(T)) &&
|
||||||
{
|
(ModuleInterfaces[typeof(T)].Count > 0))
|
||||||
m_log.Debug("[XXX] RequestModuleInterface " + typeof(T).ToString() + " size: " + ModuleInterfaces[typeof(T)].Count);
|
|
||||||
return (T)ModuleInterfaces[typeof(T)][0];
|
return (T)ModuleInterfaces[typeof(T)][0];
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
|
||||||
return default(T);
|
return default(T);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// For the given interface, retrieve an array of region modules that implement it.
|
/// For the given interface, retrieve an array of region modules that implement it.
|
||||||
|
|
Loading…
Reference in New Issue