From fcf7db72728174a628e62ae9d98a3c0090217728 Mon Sep 17 00:00:00 2001 From: Tedd Hansen Date: Fri, 17 Aug 2007 21:24:38 +0000 Subject: Pimped up Default.lsl. Now featuring a touch counter. Changed "ObjectID" in ScriptEngine to IScriptHost reference. Events will now be queued based on IScriptHost reference instead of string ID of object. Removed "root" object reference in script. --- OpenSim/Region/ScriptEngine/DotNetEngine/EventQueueManager.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/ScriptEngine/DotNetEngine/EventQueueManager.cs') diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/EventQueueManager.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/EventQueueManager.cs index a5eff7d..a63aad9 100644 --- a/OpenSim/Region/ScriptEngine/DotNetEngine/EventQueueManager.cs +++ b/OpenSim/Region/ScriptEngine/DotNetEngine/EventQueueManager.cs @@ -31,6 +31,7 @@ using System.Collections.Generic; using System.Text; using System.Threading; using System.Reflection; +using OpenSim.Region.Environment.Scenes.Scripting; namespace OpenSim.Region.ScriptEngine.DotNetEngine { @@ -45,7 +46,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine private Queue EventQueue = new Queue(); private struct QueueItemStruct { - public string ObjectID; + public IScriptHost ObjectID; public string ScriptID; public string FunctionName; public object[] param; @@ -109,7 +110,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine } } - public void AddToObjectQueue(string ObjectID, string FunctionName, object[] param) + public void AddToObjectQueue(IScriptHost ObjectID, string FunctionName, object[] param) { // Determine all scripts in Object and add to their queue //myScriptEngine.m_logger.Verbose("ScriptEngine", "EventQueueManager Adding ObjectID: " + ObjectID + ", FunctionName: " + FunctionName); -- cgit v1.1