* Moved EventManager to SceneBase (from Scene)
* Added OnShutdown event to EventManager (to be used to perform cleanups, etc) * Fixed another compiler warning.afrisby
parent
5e490e0599
commit
36fc7390f2
|
@ -64,10 +64,10 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
private int landPrimCheckCount;
|
||||
private Mutex updateLock;
|
||||
|
||||
protected StorageManager storageManager;
|
||||
protected AgentCircuitManager authenticateHandler;
|
||||
protected RegionCommsListener regionCommsHost;
|
||||
protected CommunicationsManager commsManager;
|
||||
protected StorageManager storageManager;
|
||||
|
||||
protected Dictionary<LLUUID, Caps> capsHandlers = new Dictionary<LLUUID, Caps>();
|
||||
protected BaseHttpServer httpListener;
|
||||
|
@ -97,13 +97,6 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
get { return m_estateManager; }
|
||||
}
|
||||
|
||||
private EventManager m_eventManager;
|
||||
|
||||
public EventManager EventManager
|
||||
{
|
||||
get { return m_eventManager; }
|
||||
}
|
||||
|
||||
private ScriptManager m_scriptManager;
|
||||
|
||||
public ScriptManager ScriptManager
|
||||
|
|
|
@ -47,6 +47,13 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
|
||||
public TerrainEngine Terrain;
|
||||
|
||||
protected EventManager m_eventManager;
|
||||
|
||||
public EventManager EventManager
|
||||
{
|
||||
get { return m_eventManager; }
|
||||
}
|
||||
|
||||
protected string m_datastore;
|
||||
|
||||
protected object m_syncRoot = new object();
|
||||
|
@ -134,7 +141,7 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
{
|
||||
try
|
||||
{
|
||||
//TODO: Add cleanup code for storage manager, etc.
|
||||
this.EventManager.TriggerShutdown();
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
|
|
@ -28,6 +28,9 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
public delegate void OnScriptConsoleDelegate(string[] args);
|
||||
public event OnScriptConsoleDelegate OnScriptConsole;
|
||||
|
||||
public delegate void OnShutdownDelegate();
|
||||
public event OnShutdownDelegate OnShutdown;
|
||||
|
||||
public void TriggerOnScriptConsole(string[] args)
|
||||
{
|
||||
if (OnScriptConsole != null)
|
||||
|
@ -78,5 +81,11 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
OnParcelPrimCountAdd(obj);
|
||||
}
|
||||
}
|
||||
|
||||
public void TriggerShutdown()
|
||||
{
|
||||
if (OnShutdown != null)
|
||||
OnShutdown();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue