Disabled DAExampleModule

user_profiles
Oren Hurvitz 2013-01-22 12:17:16 +02:00 committed by Justin Clark-Casey (justincc)
parent af6a7cf95d
commit 23f0610f0c
1 changed files with 13 additions and 5 deletions

View File

@ -46,6 +46,8 @@ namespace OpenSim.Region.Framework.DynamicAttributes.DAExampleModule
{ {
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
private static readonly bool ENABLED = false; // enable for testing
protected Scene m_scene; protected Scene m_scene;
protected IDialogModule m_dialogMod; protected IDialogModule m_dialogMod;
@ -55,16 +57,22 @@ namespace OpenSim.Region.Framework.DynamicAttributes.DAExampleModule
public void Initialise(IConfigSource source) {} public void Initialise(IConfigSource source) {}
public void AddRegion(Scene scene) public void AddRegion(Scene scene)
{
if (ENABLED)
{ {
m_scene = scene; m_scene = scene;
m_scene.EventManager.OnSceneGroupMove += OnSceneGroupMove; m_scene.EventManager.OnSceneGroupMove += OnSceneGroupMove;
m_dialogMod = m_scene.RequestModuleInterface<IDialogModule>(); m_dialogMod = m_scene.RequestModuleInterface<IDialogModule>();
} }
}
public void RemoveRegion(Scene scene) public void RemoveRegion(Scene scene)
{
if (ENABLED)
{ {
m_scene.EventManager.OnSceneGroupMove -= OnSceneGroupMove; m_scene.EventManager.OnSceneGroupMove -= OnSceneGroupMove;
} }
}
public void RegionLoaded(Scene scene) {} public void RegionLoaded(Scene scene) {}