LoadWindlightProfile() public method

public LoadWindlightProfile ( ) : void
return void
Exemplo n.º 1
0
        public void AddRegion(Scene scene)
        {
            if (!m_enableWindlight)
                return;

            m_scene = scene;
            m_scene.RegisterModuleInterface<ILightShareModule>(this);
            m_scene.EventManager.OnPluginConsole += EventManager_OnPluginConsole;

            m_scene.EventManager.OnMakeRootAgent += EventManager_OnMakeRootAgent;
            m_scene.EventManager.OnSaveNewWindlightProfile += EventManager_OnSaveNewWindlightProfile;
            m_scene.EventManager.OnSendNewWindlightProfileTargeted += EventManager_OnSendNewWindlightProfileTargeted;
            m_scene.LoadWindlightProfile();

            InstallCommands();
        }
Exemplo n.º 2
0
        public void Initialise(Scene scene, IConfigSource config)
        {
            m_scene = scene;
            m_scene.RegisterModuleInterface<IRegionModule>(this);
            m_scene.EventManager.OnPluginConsole += EventManager_OnPluginConsole;

            // ini file settings
            try
            {
                m_enableWindlight = config.Configs["LightShare"].GetBoolean("enable_windlight", false);
            }
            catch (Exception)
            {
                m_log.Debug("[WINDLIGHT]: ini failure for enable_windlight - using default");
            }

            if (m_enableWindlight)
            {
                m_scene.EventManager.OnMakeRootAgent += EventManager_OnMakeRootAgent;
                m_scene.EventManager.OnSaveNewWindlightProfile += EventManager_OnSaveNewWindlightProfile;
                m_scene.EventManager.OnSendNewWindlightProfileTargeted += EventManager_OnSendNewWindlightProfileTargeted;
                m_scene.LoadWindlightProfile();
            }

            InstallCommands();

            m_log.Debug("[WINDLIGHT]: Initialised windlight module");
        }