mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 20:55:43 +08:00
* Moved EventManager to SceneBase (from Scene)
* Added OnShutdown event to EventManager (to be used to perform cleanups, etc) * Fixed another compiler warning.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user