From 0377ddb5de48406f6d72d676ca853fcb0b8ff497 Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Fri, 10 Apr 2009 19:07:41 +0000 Subject: Add events to IScriptEngine to notify scripting modules of the removal of objects from the scene, and of scripts from objects. This facilitates the development of modules that can register prims with externall servers for inbound email and XMLRPC. Currently implemented in XEngine only. Also applying cmickeyb's compiler locking patch, since it seems risk-free. --- OpenSim/Region/ScriptEngine/Interfaces/IScriptEngine.cs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'OpenSim/Region/ScriptEngine/Interfaces') diff --git a/OpenSim/Region/ScriptEngine/Interfaces/IScriptEngine.cs b/OpenSim/Region/ScriptEngine/Interfaces/IScriptEngine.cs index 95a8530..8da46f4 100644 --- a/OpenSim/Region/ScriptEngine/Interfaces/IScriptEngine.cs +++ b/OpenSim/Region/ScriptEngine/Interfaces/IScriptEngine.cs @@ -41,6 +41,10 @@ namespace OpenSim.Region.ScriptEngine.Interfaces /// An interface for a script API module to communicate with /// the engine it's running under /// + + public delegate void ScriptRemoved(UUID script); + public delegate void ObjectRemoved(UUID prim); + public interface IScriptEngine { /// @@ -50,6 +54,9 @@ namespace OpenSim.Region.ScriptEngine.Interfaces Scene World { get; } + event ScriptRemoved OnScriptRemoved; + event ObjectRemoved OnObjectRemoved; + /// /// Post an event to a single script /// -- cgit v1.1