parent
f63b83b085
commit
e206a9ce88
|
@ -440,15 +440,11 @@ 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>
|
||||||
|
|
Loading…
Reference in New Issue