/// <summary>
        ///     Get a monitor from the given Scene (RegionID or "" for the base instance)
        /// </summary>
        /// <param name="scene"></param>
        /// <returns></returns>
        public T GetMonitor <T> (IScene scene) where T : IMonitor
        {
            if (scene == null)
            {
                return(m_registry.GetMonitor <T> ());
            }

            lock (m_regionRegistry)
                return(m_regionRegistry [scene.RegionInfo.RegionID].GetMonitor <T> ());
        }
Esempio n. 2
0
 /// <summary>
 ///     Get a monitor from the given Key (RegionID or "" for the base instance) by Name
 /// </summary>
 /// <param name="Key"></param>
 /// <param name="Name"></param>
 /// <returns></returns>
 public T GetMonitor <T>() where T : IMonitor
 {
     return((T)m_registry.GetMonitor <T>());
 }