Esempio n. 1
0
 // -----------------------------------------------------------------
 /// <summary>
 /// Called when all modules have been added for a region. This is
 /// where we hook up events
 /// </summary>
 // -----------------------------------------------------------------
 public override void RegisterHandlers()
 {
     m_SunModule = m_scene.RequestModuleInterface <ISunModule>();
     if (m_SunModule == null)
     {
         m_log.WarnFormat("[RegionHandlers] unable to find sun module provider");
     }
     else
     {
         m_dispatcher.RegisterOperationHandler(m_scene, m_domain, typeof(GetSunParametersRequest), GetSunParametersHandler);
         m_dispatcher.RegisterOperationHandler(m_scene, m_domain, typeof(SetSunParametersRequest), SetSunParametersHandler);
     }
 }
 // -----------------------------------------------------------------
 /// <summary>
 /// Called when all modules have been added for a region. This is 
 /// where we hook up events
 /// </summary>
 // -----------------------------------------------------------------
 public override void RegisterHandlers()
 {
     m_SunModule = m_scene.RequestModuleInterface<ISunModule>();
     if (m_SunModule == null)
     {
         m_log.WarnFormat("[RegionHandlers] unable to find sun module provider");
     }
     else
     {
         m_dispatcher.RegisterOperationHandler(m_scene,m_domain,typeof(GetSunParametersRequest),GetSunParametersHandler);
         m_dispatcher.RegisterOperationHandler(m_scene,m_domain,typeof(SetSunParametersRequest),SetSunParametersHandler);
     }
 }