29 using System.Collections.Generic;
31 using OpenSim.Region.OptionalModules.Scripting.Minimodule.Interfaces;
33 namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
37 private readonly Dictionary<Type, object> m_instances;
41 m_instances = instances;
46 return (T) m_instances[typeof (T)];
49 public bool TryGet<T>(out T extension)
51 if (!m_instances.ContainsKey(typeof(T)))
53 extension =
default(T);
63 return m_instances.ContainsKey(typeof (T));
ExtensionHandler(Dictionary< Type, object > instances)
Interactive OpenSim region server