From 22537aa6207d822dccbb1dff298c95336a740358 Mon Sep 17 00:00:00 2001 From: lbsa71 Date: Wed, 22 Aug 2007 15:29:47 +0000 Subject: [PATCH] * Added stub OnRezScript handler with plentiful of comments --- .../Region/ScriptEngine/DotNetEngine/ScriptEngine.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptEngine.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptEngine.cs index 9b8cff0b01..90ea01b1fd 100644 --- a/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptEngine.cs +++ b/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptEngine.cs @@ -77,7 +77,18 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine // Should we iterate the region for scripts that needs starting? // Or can we assume we are loaded before anything else so we can use proper events? + // Event hook for when scripts are dragged to script inventory + World.EventManager.OnRezScript += NewRezScriptHandler; + } + + private void NewRezScriptHandler(uint localID, string script) + { + // TODO: Add code to compile script and wire up script to object + // Either the script is a stand-alone entity with a reference to public host, + // Or the host has a reference to the script because it was in its inventory. + } + public void Shutdown() { // We are shutting down