From 2c2f10e156c62aa1d95923ff5309f2be7f08faeb Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Mon, 2 Feb 2009 20:59:12 +0000 Subject: * Establish OnOarFileSaved EventManager event and subscribe to that instead of passing in a waithandle to the archiver * This matches the existing OnOarFileLoaded event * This brings up the question of how these things can be made generic so that they don't have to be tied into EventManager, but that's a topic for another day --- OpenSim/Region/Environment/Scenes/EventManager.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'OpenSim/Region/Environment/Scenes') 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 /// public delegate void OarFileLoaded(string message); public event OarFileLoaded OnOarFileLoaded; + + /// + /// Called when an oar file has finished saving + /// Message is non empty string if there were problems saving the oar file + /// + public delegate void OarFileSaved(string message); + public event OarFileSaved OnOarFileSaved; /// /// Called when the script compile queue becomes empty @@ -415,6 +422,8 @@ namespace OpenSim.Region.Environment.Scenes private OnSetRootAgentSceneDelegate handlerSetRootAgentScene = null; private OarFileLoaded handlerOarFileLoaded = null; + private OarFileSaved handlerOarFileSaved = null; + private EmptyScriptCompileQueue handlerEmptyScriptCompileQueue = null; public void TriggerGetScriptRunning(IClientAPI controllingClient, UUID objectID, UUID itemID) @@ -925,6 +934,13 @@ namespace OpenSim.Region.Environment.Scenes if (handlerOarFileLoaded != null) handlerOarFileLoaded(message); } + + public void TriggerOarFileSaved(string message) + { + handlerOarFileSaved = OnOarFileSaved; + if (handlerOarFileSaved != null) + handlerOarFileSaved(message); + } public void TriggerEmptyScriptCompileQueue(int numScriptsFailed, string message) { -- cgit v1.1