From 22537aa6207d822dccbb1dff298c95336a740358 Mon Sep 17 00:00:00 2001 From: lbsa71 Date: Wed, 22 Aug 2007 15:29:47 +0000 Subject: * Added stub OnRezScript handler with plentiful of comments --- OpenSim/Region/ScriptEngine/DotNetEngine/ScriptEngine.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'OpenSim/Region/ScriptEngine') diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptEngine.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptEngine.cs index 9b8cff0..90ea01b 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 -- cgit v1.1