public void AddRegion(Scene scene) { if (!m_enableWindlight) { return; } m_scene = scene; m_scene.RegisterModuleInterface <IWindLightSettingsModule>(this); IRegionInfoConnector RegionInfoConnector = Aurora.DataManager.DataManager.RequestPlugin <IRegionInfoConnector>(); if (RegionInfoConnector != null) { m_WindlightSettings = RegionInfoConnector.LoadRegionWindlightSettings(m_scene.RegionInfo.RegionID); } scene.EventManager.OnClientClosed += EventManager_OnClientClosed; scene.EventManager.OnRegisterCaps += OnRegisterCaps; scene.EventManager.OnMakeRootAgent += SendProfileToClient; scene.EventManager.OnSignificantClientMovement += OnSignificantClientMovement; scene.EventManager.OnAvatarEnteringNewParcel += AvatarEnteringNewParcel; }
public void AddRegion(IScene scene) { if (!m_enableWindlight) { return; } m_scene = scene; m_scene.RegisterModuleInterface <IWindLightSettingsModule>(this); m_scene.StackModuleInterface <IAuroraBackupModule>(this); IRegionInfoConnector RegionInfoConnector = DataManager.DataManager.RequestPlugin <IRegionInfoConnector>(); if (RegionInfoConnector != null) { m_WindlightSettings = RegionInfoConnector.LoadRegionWindlightSettings(m_scene.RegionInfo.RegionID); } scene.EventManager.OnRemovePresence += OnRemovePresence; scene.EventManager.OnRegisterCaps += OnRegisterCaps; scene.EventManager.OnMakeRootAgent += OnMakeRootAgent; scene.EventManager.OnSignificantClientMovement += OnSignificantClientMovement; scene.EventManager.OnAvatarEnteringNewParcel += AvatarEnteringNewParcel; }