aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/EventManager.cs
diff options
context:
space:
mode:
authorMelanie2011-11-19 22:39:15 +0000
committerMelanie2011-11-19 22:39:15 +0000
commitbdb5ac96d9432eb568ed3e3bb46b012365f884bc (patch)
treefe2ce2636be7e750b3f235a6c04b9f3a5cf2f8af /OpenSim/Region/Framework/Scenes/EventManager.cs
parentMerge branch 'master' into bigmerge (diff)
parentRemove the "[LOCAL SIMULATION CONNECTOR]: Did not find region {0} for SendCre... (diff)
downloadopensim-SC_OLD-bdb5ac96d9432eb568ed3e3bb46b012365f884bc.zip
opensim-SC_OLD-bdb5ac96d9432eb568ed3e3bb46b012365f884bc.tar.gz
opensim-SC_OLD-bdb5ac96d9432eb568ed3e3bb46b012365f884bc.tar.bz2
opensim-SC_OLD-bdb5ac96d9432eb568ed3e3bb46b012365f884bc.tar.xz
Merge branch 'master' into bigmerge
Conflicts: OpenSim/Region/Framework/Scenes/SceneCommunicationService.cs OpenSim/Region/ScriptEngine/XEngine/XEngine.cs
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/EventManager.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/EventManager.cs26
1 files changed, 16 insertions, 10 deletions
diff --git a/OpenSim/Region/Framework/Scenes/EventManager.cs b/OpenSim/Region/Framework/Scenes/EventManager.cs
index 0049384..547e693 100644
--- a/OpenSim/Region/Framework/Scenes/EventManager.cs
+++ b/OpenSim/Region/Framework/Scenes/EventManager.cs
@@ -102,9 +102,10 @@ namespace OpenSim.Region.Framework.Scenes
102 102
103 public event OnPluginConsoleDelegate OnPluginConsole; 103 public event OnPluginConsoleDelegate OnPluginConsole;
104 104
105 public delegate void OnShutdownDelegate(); 105 /// <summary>
106 106 /// Triggered when the entire simulator is shutdown.
107 public event OnShutdownDelegate OnShutdown; 107 /// </summary>
108 public event Action OnShutdown;
108 109
109 public delegate void ObjectDeGrabDelegate(uint localID, uint originalID, IClientAPI remoteClient, SurfaceTouchEventArgs surfaceArgs); 110 public delegate void ObjectDeGrabDelegate(uint localID, uint originalID, IClientAPI remoteClient, SurfaceTouchEventArgs surfaceArgs);
110 public delegate void ScriptResetDelegate(uint localID, UUID itemID); 111 public delegate void ScriptResetDelegate(uint localID, UUID itemID);
@@ -117,9 +118,14 @@ namespace OpenSim.Region.Framework.Scenes
117 118
118 public event ParcelPropertiesUpdateRequest OnParcelPropertiesUpdateRequest; 119 public event ParcelPropertiesUpdateRequest OnParcelPropertiesUpdateRequest;
119 120
120 public delegate void SceneShuttingDownDelegate(Scene scene); 121 /// <summary>
121 122 /// Triggered when an individual scene is shutdown.
122 public event SceneShuttingDownDelegate OnSceneShuttingDown; 123 /// </summary>
124 /// <remarks>
125 /// This does not automatically mean that the entire simulator is shutting down. Listen to OnShutdown for that
126 /// notification.
127 /// </remarks>
128 public event Action<Scene> OnSceneShuttingDown;
123 129
124 /// <summary> 130 /// <summary>
125 /// Fired when an object is touched/grabbed. 131 /// Fired when an object is touched/grabbed.
@@ -893,10 +899,10 @@ namespace OpenSim.Region.Framework.Scenes
893 899
894 public void TriggerShutdown() 900 public void TriggerShutdown()
895 { 901 {
896 OnShutdownDelegate handlerShutdown = OnShutdown; 902 Action handlerShutdown = OnShutdown;
897 if (handlerShutdown != null) 903 if (handlerShutdown != null)
898 { 904 {
899 foreach (OnShutdownDelegate d in handlerShutdown.GetInvocationList()) 905 foreach (Action d in handlerShutdown.GetInvocationList())
900 { 906 {
901 try 907 try
902 { 908 {
@@ -2236,10 +2242,10 @@ namespace OpenSim.Region.Framework.Scenes
2236 2242
2237 public void TriggerSceneShuttingDown(Scene s) 2243 public void TriggerSceneShuttingDown(Scene s)
2238 { 2244 {
2239 SceneShuttingDownDelegate handler = OnSceneShuttingDown; 2245 Action<Scene> handler = OnSceneShuttingDown;
2240 if (handler != null) 2246 if (handler != null)
2241 { 2247 {
2242 foreach (SceneShuttingDownDelegate d in handler.GetInvocationList()) 2248 foreach (Action<Scene> d in handler.GetInvocationList())
2243 { 2249 {
2244 try 2250 try
2245 { 2251 {