diff options
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/EventManager.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/EventManager.cs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/EventManager.cs b/OpenSim/Region/Environment/Scenes/EventManager.cs index 1543bf0..618e6b5 100644 --- a/OpenSim/Region/Environment/Scenes/EventManager.cs +++ b/OpenSim/Region/Environment/Scenes/EventManager.cs | |||
@@ -273,6 +273,13 @@ namespace OpenSim.Region.Environment.Scenes | |||
273 | /// </summary> | 273 | /// </summary> |
274 | public delegate void OarFileLoaded(string message); | 274 | public delegate void OarFileLoaded(string message); |
275 | public event OarFileLoaded OnOarFileLoaded; | 275 | public event OarFileLoaded OnOarFileLoaded; |
276 | |||
277 | /// <summary> | ||
278 | /// Called when an oar file has finished saving | ||
279 | /// Message is non empty string if there were problems saving the oar file | ||
280 | /// </summary> | ||
281 | public delegate void OarFileSaved(string message); | ||
282 | public event OarFileSaved OnOarFileSaved; | ||
276 | 283 | ||
277 | /// <summary> | 284 | /// <summary> |
278 | /// Called when the script compile queue becomes empty | 285 | /// Called when the script compile queue becomes empty |
@@ -415,6 +422,8 @@ namespace OpenSim.Region.Environment.Scenes | |||
415 | private OnSetRootAgentSceneDelegate handlerSetRootAgentScene = null; | 422 | private OnSetRootAgentSceneDelegate handlerSetRootAgentScene = null; |
416 | 423 | ||
417 | private OarFileLoaded handlerOarFileLoaded = null; | 424 | private OarFileLoaded handlerOarFileLoaded = null; |
425 | private OarFileSaved handlerOarFileSaved = null; | ||
426 | |||
418 | private EmptyScriptCompileQueue handlerEmptyScriptCompileQueue = null; | 427 | private EmptyScriptCompileQueue handlerEmptyScriptCompileQueue = null; |
419 | 428 | ||
420 | public void TriggerGetScriptRunning(IClientAPI controllingClient, UUID objectID, UUID itemID) | 429 | public void TriggerGetScriptRunning(IClientAPI controllingClient, UUID objectID, UUID itemID) |
@@ -925,6 +934,13 @@ namespace OpenSim.Region.Environment.Scenes | |||
925 | if (handlerOarFileLoaded != null) | 934 | if (handlerOarFileLoaded != null) |
926 | handlerOarFileLoaded(message); | 935 | handlerOarFileLoaded(message); |
927 | } | 936 | } |
937 | |||
938 | public void TriggerOarFileSaved(string message) | ||
939 | { | ||
940 | handlerOarFileSaved = OnOarFileSaved; | ||
941 | if (handlerOarFileSaved != null) | ||
942 | handlerOarFileSaved(message); | ||
943 | } | ||
928 | 944 | ||
929 | public void TriggerEmptyScriptCompileQueue(int numScriptsFailed, string message) | 945 | public void TriggerEmptyScriptCompileQueue(int numScriptsFailed, string message) |
930 | { | 946 | { |