diff options
author | Adam Frisby | 2007-07-19 00:52:10 +0000 |
---|---|---|
committer | Adam Frisby | 2007-07-19 00:52:10 +0000 |
commit | 36fc7390f2aabb745455f23f276725f102cacbf6 (patch) | |
tree | e5bd15a711b84c48705153e36aee0174d6cbb8be /OpenSim/Region/Environment/Scenes/SceneEvents.cs | |
parent | * Nearly back down to zero compiler warnings again... (diff) | |
download | opensim-SC_OLD-36fc7390f2aabb745455f23f276725f102cacbf6.zip opensim-SC_OLD-36fc7390f2aabb745455f23f276725f102cacbf6.tar.gz opensim-SC_OLD-36fc7390f2aabb745455f23f276725f102cacbf6.tar.bz2 opensim-SC_OLD-36fc7390f2aabb745455f23f276725f102cacbf6.tar.xz |
* Moved EventManager to SceneBase (from Scene)
* Added OnShutdown event to EventManager (to be used to perform cleanups, etc)
* Fixed another compiler warning.
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneEvents.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneEvents.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneEvents.cs b/OpenSim/Region/Environment/Scenes/SceneEvents.cs index 255cbf2..eb1d5b4 100644 --- a/OpenSim/Region/Environment/Scenes/SceneEvents.cs +++ b/OpenSim/Region/Environment/Scenes/SceneEvents.cs | |||
@@ -28,6 +28,9 @@ namespace OpenSim.Region.Environment.Scenes | |||
28 | public delegate void OnScriptConsoleDelegate(string[] args); | 28 | public delegate void OnScriptConsoleDelegate(string[] args); |
29 | public event OnScriptConsoleDelegate OnScriptConsole; | 29 | public event OnScriptConsoleDelegate OnScriptConsole; |
30 | 30 | ||
31 | public delegate void OnShutdownDelegate(); | ||
32 | public event OnShutdownDelegate OnShutdown; | ||
33 | |||
31 | public void TriggerOnScriptConsole(string[] args) | 34 | public void TriggerOnScriptConsole(string[] args) |
32 | { | 35 | { |
33 | if (OnScriptConsole != null) | 36 | if (OnScriptConsole != null) |
@@ -78,5 +81,11 @@ namespace OpenSim.Region.Environment.Scenes | |||
78 | OnParcelPrimCountAdd(obj); | 81 | OnParcelPrimCountAdd(obj); |
79 | } | 82 | } |
80 | } | 83 | } |
84 | |||
85 | public void TriggerShutdown() | ||
86 | { | ||
87 | if (OnShutdown != null) | ||
88 | OnShutdown(); | ||
89 | } | ||
81 | } | 90 | } |
82 | } | 91 | } |